PKGBUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Maintainer (arch): Sven-Hendrik Haase <sh@lutzhaase.com>
  2. # Contributor: Malte Rabenseifner <malte@zearan.de>
  3. # Contributor: John Gerritse <reaphsharc@gmail.com>
  4. # Contributor: André Silva <emulatorman@hyperbola.info>
  5. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  6. # Contributor: Michał Masłowski <mtjm@mtjm.eu>
  7. pkgname=lsb-release
  8. pkgver=1.4
  9. pkgrel=15.parabola1
  10. pkgdesc="LSB version query program (Parabola rebranded)"
  11. arch=('any')
  12. url="http://www.linuxbase.org/"
  13. license=('GPL2')
  14. depends=('bash')
  15. replaces=("${pkgname}-libre" "${pkgname}-parabola")
  16. conflicts=("${pkgname}-libre" "${pkgname}-parabola")
  17. install=lsb-release.install
  18. source=(https://downloads.sourceforge.net/lsb/$pkgname-$pkgver.tar.gz
  19. lsb_release_description.patch)
  20. sha512sums=('84f6f8794380463587005043f601b7a40190cd9e3409abff7f5ce7658cf029a14346eff87838296d90307192bdeff68cc00480c5c04814da7acdb3e220640fde'
  21. '145ef64f90f5e6cc59075679e640cf7c1ad02617c12eff17f10b05c1cc219591fdba1b27be2b2c8480742aed24ce81d6a7badcbaca6772faea4ebc6a55695b62')
  22. build() {
  23. cd "$srcdir/$pkgname-$pkgver"
  24. patch -Np0 < "$srcdir/lsb_release_description.patch"
  25. make
  26. }
  27. package() {
  28. cd "$srcdir/$pkgname-$pkgver"
  29. install -dm755 "$pkgdir/etc"
  30. echo "LSB_VERSION=$pkgver" >> "$pkgdir/etc/lsb-release"
  31. echo "DISTRIB_ID=Parabola" > "$pkgdir/etc/lsb-release"
  32. echo "DISTRIB_RELEASE=rolling" >> "$pkgdir/etc/lsb-release"
  33. echo "DISTRIB_DESCRIPTION=\"Parabola GNU/Linux-libre\"" >> "$pkgdir/etc/lsb-release"
  34. install -Dm 644 lsb_release.1.gz "$pkgdir/usr/share/man/man1/lsb_release.1.gz"
  35. install -Dm 755 lsb_release "$pkgdir/usr/bin/lsb_release"
  36. }