Commit 824c9987 authored by Daniel Krebs's avatar Daniel Krebs
Browse files

packaging: add Archlinux package

parent 1e9ba6ce
Pipeline #28293 passed with stage
in 8 seconds
# $Id$
# Maintainer: Daniel Krebs <github@daniel-krebs.net>
pkgname=libxil
BRANCH=master
COMMIT=1e9ba6ce5568b2712fef60f8a1923aeb3979bda7
pkgver=0.1
pkgrel=1
pkgdesc="Modified Xilinx drivers for VILLASnode: https://github.com/Xilinx/embeddedsw"
arch=('i686' 'x86_64')
url="http://libxil.org"
source=("https://git.rwth-aachen.de/VILLASframework/libxil/repository/${BRANCH}/archive.tar.bz2?sha=${COMMIT}")
sha256sums=(SKIP)
build() {
mkdir -p "$srcdir/$pkgname-$BRANCH-$COMMIT/build"
cd "$srcdir/$pkgname-$BRANCH-$COMMIT/build"
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "$srcdir/$pkgname-$BRANCH-$COMMIT/build"
make DESTDIR="$pkgdir" install
}
# Packaging
## Archlinux
The `PKGBUILD` script describes the Archlinux package and will download a git
snapshot of the project (fixed hash). If you want to update the package, please
adjust the `COMMIT=...` line to the commit hash of your liking.
```bash
$ cd packaging/
$ makepkg
$ sudo pacman -U libxil-0.1-1-x86_64.pkg.tar.xz
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment