diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rwxr-xr-x | PKGBUILD | 43 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..aa23e8badf88 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = antares-git + pkgdesc = A window manager for X + pkgver = r113.g30e3525 + pkgrel = 1 + url = https://notabug.org/Leon_Plickat/antares + arch = x86_64 + license = GPL3 + makedepends = git + depends = cairo + depends = libxinerama + provides = antares + conflicts = antares + source = antares::git+https://notabug.org/Leon_Plickat/antares.git + md5sums = SKIP + +pkgname = antares-git + 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 +} |