summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosip Ponjavic2019-03-09 14:00:53 +0100
committerJosip Ponjavic2019-03-09 14:00:53 +0100
commitcdbed31b9de86b7857a628851a0c7d1ad442f6b8 (patch)
treee57fdff0950078b67cba0d5b6ce133d2c49d2355
downloadaur-cdbed31b9de86b7857a628851a0c7d1ad442f6b8.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rwxr-xr-xPKGBUILD43
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..aa23e8badf8
--- /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 00000000000..23e3f0a7454
--- /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
+}