yochananmarqos

gtksu-git

Nov 21st, 2020
131
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=gtksu-git
  2. pkgver=0.1.6.r3.ga8528e7
  3. pkgrel=1
  4. pkgdesc="A simple replacement for gksu"
  5. arch=('x86_64')
  6. url="https://github.com/KeithDHedger/GtkSu"
  7. license=('GPL')
  8. depends=('qt5-base')
  9. makedepends=('git')
  10. provides=("${pkgname%-git}" 'gksu')
  11. conflicts=("${pkgname%-git}" 'gksu')
  12. source=(""${pkgname%-git}"::git+https://github.com/KeithDHedger/GtkSu.git")
  13. md5sums=('SKIP')
  14.  
  15. pkgver() {
  16.     cd "$srcdir/${pkgname%-git}"
  17.     git describe --long --tags | sed 's/^gtksu.//;s/\([^-]*-g\)/r\1/;s/-/./g'
  18. }
  19.  
  20. prepare() {
  21.     cd "$srcdir/${pkgname%-git}"
  22.  
  23.     # Fix building with aclocal 1.16
  24.     find . -type f -exec sed -i 's|1.15|1.16|g' {} \;
  25. }
  26.  
  27. build() {
  28.      cd "$srcdir/${pkgname%-git}"
  29.      ./autogen.sh
  30.      ./configure --prefix=/usr --enable-qt5
  31.      make
  32. }
  33.  
  34. package() {
  35.     cd "$srcdir/${pkgname%-git}"
  36.     make DESTDIR="$pkgdir" install
  37.  
  38.     ln -s "/usr/bin/$_pkgname" "$pkgdir/usr/bin/gksu"
  39. }
RAW Paste Data