diff options
author | Josip Ponjavic | 2019-03-09 14:00:53 +0100 |
---|---|---|
committer | Josip Ponjavic | 2019-03-09 14:00:53 +0100 |
commit | cdbed31b9de86b7857a628851a0c7d1ad442f6b8 (patch) | |
tree | e57fdff0950078b67cba0d5b6ce133d2c49d2355 /PKGBUILD | |
download | aur-cdbed31b9de86b7857a628851a0c7d1ad442f6b8.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..23e3f0a74548 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com> +# Contributor: + +pkgname=antares-git +pkgver=r113.g30e3525 +pkgrel=1 +pkgdesc='A window manager for X' +arch=(x86_64) +url='https://notabug.org/Leon_Plickat/antares' +license=(GPL3) +depends=(cairo libxinerama) +makedepends=(git) +provides=("${pkgname%-*}") +conflicts=("${pkgname%-*}") +source=("${pkgname%-*}::git+${url}.git") +md5sums=('SKIP') + +pkgver() { + cd "${pkgname%-*}" + printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${pkgname%-*}" + + if [ -e $startdir/config.h ]; then + msg2 "using custom config.h" + cp ${startdir}/config.h src/config.h + else + msg2 "using default config.h" + fi +} + +build() { + cd "${pkgname%-*}" + make +} + +package() { + cd "${pkgname%-*}" + install -D -m 755 antares "$pkgdir"/usr/bin/antares + install -D -m 644 doc/antares.1 "$pkgdir"/usr/share/man/man1/antares.1 +} |