summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse2015-07-08 14:33:05 +0200
committerChristian Hesse2015-07-08 14:33:05 +0200
commit3841e8dc347dc65cf224deddaecc473b2fe1186a (patch)
tree2adbb6595567a39367242b37f4bc139bcac2e593
downloadaur-3841e8dc347dc65cf224deddaecc473b2fe1186a.tar.gz
initial import of ubase-git 0.r565.g71da562-1
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD48
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d62b4513c67
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ubase-git
+ pkgdesc = An extension of the sbase *nix core utilities - git checkout
+ pkgver = 0.r565.g71da562
+ pkgrel = 1
+ url = http://git.suckless.org/ubase/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ depends = sbase-git
+ source = git://git.suckless.org/ubase
+ sha256sums = SKIP
+
+pkgname = ubase-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9ba5da2efaa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Christian Hesse <arch@eworm.de>
+# Contributor: Jens Staal <staal1978@gmail.com>
+
+pkgname=ubase-git
+pkgver=0.r565.g71da562
+pkgrel=1
+pkgdesc='An extension of the sbase *nix core utilities - git checkout'
+arch=('i686' 'x86_64')
+license=('MIT')
+url='http://git.suckless.org/ubase/'
+depends=('sbase-git')
+makedepends=('git')
+source=('git://git.suckless.org/ubase')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${srcdir}/ubase/
+
+ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
+ printf '%s.r%s.g%s' \
+ "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
+ "$(git rev-list --count ${GITTAG}..)" \
+ "$(git log -1 --format='%h')"
+ else
+ printf '0.r%s.g%s' \
+ "$(git rev-list --count master)" \
+ "$(git log -1 --format='%h')"
+ fi
+}
+
+#prepare() {
+# cd $srcdir/ubase/
+# #temporary hacks
+# sed -i 's|MAN = $(SRC:.c=.1)|MAN = chvt.1 |g' Makefile
+#}
+
+build() {
+ cd ${srcdir}/ubase/
+
+ make
+}
+
+package() {
+ cd ${srcdir}/ubase/
+
+ make DESTDIR=${pkgdir} PREFIX=/opt/sbase MANPREFIX=/opt/sbase/man install
+ install -D -m0644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}