diff options
author | Přemysl Janouch | 2017-01-17 20:01:55 +0100 |
---|---|---|
committer | Přemysl Janouch | 2017-01-17 20:02:26 +0100 |
commit | 7f88272d5186020a9f9506325842e2aea3eeb0f6 (patch) | |
tree | d65bade7733ca2f8377dfede9b2a65c049e6117f | |
download | aur-7f88272d5186020a9f9506325842e2aea3eeb0f6.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..88ea2bc1f9d5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = hex-git + pkgdesc = MPD client + pkgver = r22.233a69e + pkgrel = 1 + url = https://github.com/pjanouch/hex + arch = i686 + arch = x86_64 + license = BSD + makedepends = cmake + makedepends = pkg-config + makedepends = git + makedepends = help2man + depends = readline + depends = ncurses + depends = libunistring + depends = lua + provides = hex + conflicts = hex + options = zipman + source = git+https://github.com/pjanouch/hex.git + md5sums = SKIP + +pkgname = hex-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ca6e51692df1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Přemysl Janouch <p.janouch@gmail.com> +pkgname=hex-git +_pkgname=hex +pkgver=r22.233a69e +pkgrel=1 +pkgdesc="MPD client" +url="https://github.com/pjanouch/hex" +arch=('i686' 'x86_64') +license=('BSD') +options=(zipman) +conflicts=('hex') +provides=('hex') +makedepends=('cmake' 'pkg-config' 'git' 'help2man') +depends=('readline' 'ncurses' 'libunistring' 'lua') +source=("git+https://github.com/pjanouch/$_pkgname.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd "$srcdir/$_pkgname" + git submodule init + git submodule update +} + +build() { + rm -rf "$srcdir/$_pkgname-build" + mkdir "$srcdir/$_pkgname-build" + cd "$srcdir/$_pkgname-build" + cmake "$srcdir/$_pkgname" -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib + make +} + +package() { + cd "$srcdir/$_pkgname-build" + make install DESTDIR=$pkgdir +} |