summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ea86204d5d0b8009f74d94ff49e9e96ee210125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer:
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Valère Monseur <valere dot monseur at ymail dot com>

_pkgname=ktsuss
pkgname=ktsuss-git
pkgver=r23.9ea2e83
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")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${_pkgname}"

  make DESTDIR="${pkgdir}" install
  install -D -m644 COPYING "${pkgdir}"/usr/share/licenses/"${_pkgname}"/COPYING
}