PKGBUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Original package:
  2. # Contributor: Zeph <zeph33@gmail.com>
  3. # Maintainer: Zeph <zeph33@gmail.com>
  4. # Patched package:
  5. # Maintainer: Rick <rick.2889@gmail.com>
  6. pkgname=pamac-pacaur
  7. pkgver=4.3.0
  8. _pkgver=4.3.0
  9. pkgrel=1
  10. pkgdesc="A Gtk3 frontend for libalpm patched to work with pacaur"
  11. arch=('any')
  12. url="https://github.com/manjaro/pamac"
  13. license=('GPL3')
  14. depends=('glib2>=2.42' 'json-glib' 'libsoup' 'dbus-glib' 'polkit' 'vte3>=0.38' 'gtk3>=3.18'
  15. 'libnotify' 'desktop-file-utils' 'gnutls>=3.4' 'pacman'
  16. 'shared-mime-info' 'desktop-file-utils' 'gtk-update-icon-cache')
  17. optdepends=('polkit-gnome: needed for authentication in Cinnamon, Gnome'
  18. 'lxsession: needed for authentication in Xfce, LXDE, etc.'
  19. 'pacaur: needed for AUR support'
  20. 'pamac-tray-appindicator: tray icon for KDE')
  21. makedepends=('gcc' 'gettext' 'itstool' 'vala>=0.28')
  22. backup=('etc/pamac.conf')
  23. provides=('pamac')
  24. conflicts=('pamac')
  25. options=(!emptydirs)
  26. install=pamac.install
  27. source=("pamac-$pkgver-$pkgrel.tar.gz::https://github.com/manjaro/pamac/archive/v$_pkgver.tar.gz")
  28. sha512sums=('a7c226195504a3b17e6c7b7b48d6b29cd2aff52e20deef32ac85a89d3aa9ce07521910e320e44c6e4092cb4fe2e10b1310a161de800463ae15d7f8cde8395328')
  29. prepare() {
  30. # adjust version string
  31. cd "$srcdir/pamac-$_pkgver"
  32. sed -i -e "s|\"$pkgver\"|\"$pkgver-$pkgrel\"|g" src/transaction.vala
  33. # patches here
  34. sed -i -e "s/yaourt/pacaur/g" src/transaction.vala
  35. sed -i -e "s/yaourt/pacaur/g" src/preferences_dialog.vala
  36. sed -i -e "s/yaourt/pacaur/g" src/manager_window.vala
  37. }
  38. build() {
  39. cd "$srcdir/pamac-$pkgver"
  40. # build
  41. make all
  42. }
  43. package() {
  44. cd "$srcdir/pamac-$pkgver"
  45. make prefix="$pkgdir"/usr sysconfdir="$pkgdir"/etc install
  46. }
  47. # vim:set ts=2 sw=2 et: