summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d8433169cbd83024b59cbc34ccaffa56e5992ce3 (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
# Maintainer: Dominik Fuchs <d.fuchs@mail.com>

pkgname=gtksu-git
pkgver=0.0.r98.9372747
pkgrel=1
pkgdesc='A Qt5-based replacement for gksu'
arch=('any')
url='https://github.com/KeithDHedger/GtkSu'
license=('GPL')
depends=('qt5-base')
makedepends=('git')
conflicts=('gksu')
provides=("gksu	")
source=("$pkgname::git+https://github.com/KeithDHedger/GtkSu.git#branch=master")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  # git describe can't describe anything without tags
  printf "0.0.r%d.%s\n" $(git rev-list HEAD --count) $(git rev-parse --short HEAD)
}

build() {
   cd $pkgname
   ./configure --enable-qt5 --prefix=/usr
   make || return 1
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
  cd $pkgdir/usr/bin
  ln -s gtksu gksu
}