[core] Package Build scripts files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.9KB

  1. # Maintainer (Arch): Eric Bélanger <eric@archlinux.org>
  2. # Contributor (Arch): Allan McRae <allan@archlinux.org>
  3. # Maintainer: André Silva <emulatorman@hyperbola.info>
  4. pkgname=procinfo-ng
  5. pkgver=2.0.304
  6. _debver=2.0.304
  7. _debrel=3
  8. pkgrel=6.hyperbola1
  9. pkgdesc="Displays useful information from /proc"
  10. arch=('i686' 'x86_64')
  11. url="https://sourceforge.net/projects/procinfo-ng/"
  12. license=('GPL-2' 'LGPL-2.1')
  13. depends=('ncurses' 'perl')
  14. makedepends=('quilt')
  15. provides=('procinfo')
  16. conflicts=('procinfo')
  17. replaces=('procinfo')
  18. source=(https://downloads.sourceforge.net/project/procinfo-ng/procinfo-ng/${pkgver}/${pkgname}-${pkgver}.tar.bz2
  19. https://deb.debian.org/debian/pool/main/p/procinfo/procinfo_$_debver-$_debrel.debian.tar.xz)
  20. sha512sums=('db336d2ff3bb3b31ac83a51a9d273fae8d16d36bd805f548eda06cb501699473fd8e4b4f9b722165fbf685d76c3fc09bfea9e516eabc37a888e2fae7679c08cf'
  21. 'c04a8f83681ed075ec21626a74e3bf43b58bea53c86f18315d13a63b3792b92cd15fff9b22b662ee3f43c1e60e6fc5e47540afd70fb19f30953cd080c89e9e6f')
  22. prepare() {
  23. cd ${pkgname}-${pkgver}
  24. if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
  25. # Debian patches
  26. export QUILT_PATCHES=debian/patches
  27. export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
  28. export QUILT_DIFF_ARGS='--no-timestamps'
  29. mv "$srcdir"/debian .
  30. quilt push -av
  31. fi
  32. }
  33. build() {
  34. cd ${pkgname}-${pkgver}
  35. ./configure --prefix=/usr
  36. make
  37. }
  38. package() {
  39. cd ${pkgname}-${pkgver}
  40. make DESTDIR="${pkgdir}" install
  41. # install licenses
  42. install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
  43. install -Dm644 {GPL-2,LGPL-2.1,LICENSE}.txt "${pkgdir}/usr/share/licenses/${pkgname}"
  44. # install tools from old procinfo package
  45. cd "debian/procinfo-old"
  46. install -m755 lsdev "${pkgdir}/usr/bin/lsdev"
  47. install -m755 socklist "${pkgdir}/usr/bin/socklist"
  48. install -m644 lsdev.8 "${pkgdir}/usr/share/man/man8/lsdev.8"
  49. install -m644 socklist.8 "${pkgdir}/usr/share/man/man8/socklist.8"
  50. }