summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 701766baee4bd84d8b7fa241acad998dc6b85355 (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=r102.a8528e7
pkgrel=1
pkgdesc='A Qt5-based replacement for gksu'
arch=('any')
url='https://github.com/KeithDHedger/GtkSu'
license=('GPL')
depends=('qt5-base')
makedepends=('git' 'automake-1.15')
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 "r%s.%s" "$(git rev-list --count HEAD)" "$(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
}