summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorValère Monseur2015-06-08 21:20:55 +0200
committerValère Monseur2015-06-08 21:20:55 +0200
commit8243476939517d84dd02b19074f9fe337b9e9ece (patch)
tree50b60a91517db5084963e2cae59b1921491dce39
downloadaur-8243476939517d84dd02b19074f9fe337b9e9ece.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD40
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b1b51d1242e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ktsuss-git
+ pkgdesc = Graphical version of su written in C and GTK+
+ pkgver = 0.r19.e1358de
+ pkgrel = 1
+ url = https://github.com/nomius/ktsuss
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ depends = util-linux
+ depends = gtk2
+ provides = ktsuss
+ conflicts = ktsuss
+ source = ktsuss::git+https://github.com/nomius/ktsuss.git
+ md5sums = SKIP
+
+pkgname = ktsuss-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fccb295299d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
+
+_pkgname=ktsuss
+pkgname=ktsuss-git
+pkgver=0.r19.e1358de
+pkgrel=1
+pkgdesc="Graphical version of su written in C and GTK+"
+arch=('i686' 'x86_64')
+url="https://github.com/nomius/ktsuss"
+license=('BSD')
+depends=('util-linux' 'gtk2')
+makedepends=('git')
+provides=('ktsuss')
+conflicts=('ktsuss')
+source=("$_pkgname"::'git+https://github.com/nomius/ktsuss.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+
+ printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+
+ if [ ! -x ./configure ]; then
+ ./autogen.sh
+ fi
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 COPYING "${pkgdir}"/usr/share/licenses/"${_pkgname}"/COPYING
+}