PKGBUILD 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Maintainer (Arch): Eric Bélanger <eric@archlinux.org>
  2. # Maintainer: André Silva <emulatorman@hyperbola.info>
  3. # Contributor: Enmanuel E. Saravia <saravia@riseup.net>
  4. pkgname=psmisc
  5. pkgver=23.3
  6. _debver=23.3
  7. _debrel=1
  8. pkgrel=1
  9. pkgdesc="Miscellaneous procfs tools"
  10. arch=('i686' 'x86_64')
  11. url="http://psmisc.sourceforge.net/index.html"
  12. license=('GPL-2')
  13. groups=('base')
  14. depends=('ncurses')
  15. makedepends=('quilt')
  16. source=(https://downloads.sourceforge.net/psmisc/${pkgname}-${pkgver}.tar.xz
  17. https://deb.debian.org/debian/pool/main/p/psmisc/psmisc_$_debver-$_debrel.debian.tar.xz)
  18. sha512sums=('791ffef78d87b092d653da98710b338017466a9e1e1935968b9f0194ccef8da941317aa0c39d821d46b20d95d6539ccf78e5ebb71ad1032ae62337a397180d58'
  19. '454180ef80d1b3eec3c799d0ce779e54b8453691148e20cf244d457e68609ec7b1462d94b816a4dfa0e40efc7aa6c8724c07fc78202b74d919de1d9999ba9cc3')
  20. prepare() {
  21. cd ${pkgname}-${pkgver}
  22. if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
  23. # Debian patches
  24. export QUILT_PATCHES=debian/patches
  25. export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
  26. export QUILT_DIFF_ARGS='--no-timestamps'
  27. mv "$srcdir"/debian .
  28. quilt push -av
  29. fi
  30. }
  31. build() {
  32. cd ${pkgname}-${pkgver}
  33. ./configure --prefix=/usr
  34. make
  35. }
  36. package() {
  37. cd ${pkgname}-${pkgver}
  38. make DESTDIR="${pkgdir}" install
  39. install -d -m755 ${pkgdir}/bin
  40. mv ${pkgdir}/usr/bin/fuser ${pkgdir}/bin
  41. install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
  42. }
  43. # vim:set ts=2 sw=2 et: