Useful CLI tools (bash) for Arch Linux administration
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.

63 lines
1.9 KiB

  1. # Maintainer: Pekka Helenius (~Fincer) <fincer89@hotmail.com>
  2. pkgname=stderred
  3. pkgver=1.0.37.g399e3b1
  4. pkgrel=1
  5. pkgdesc="Hooks into STDERR output to print all CLI errors in red"
  6. url="https://github.com/sickill/stderred"
  7. arch=(any)
  8. license=(other)
  9. depends=()
  10. makedepends=(git cmake make gcc glibc lib32-glibc)
  11. source=($pkgname::git://github.com/sickill/stderred.git
  12. patch_brightred.patch)
  13. sha256sums=('SKIP'
  14. '1a0f2f4e32d2e62bd42128cbb1a05f9e4374670fa929d48453d459478a5b0d05')
  15. pkgver() {
  16. cd "$srcdir/$pkgname"
  17. _git_version="$(git describe --tags | sed 's/\-/\./g; s/v//1')"
  18. printf "%s" "$_git_version"
  19. }
  20. prepare() {
  21. cd "$srcdir/$pkgname/"
  22. patch -Np1 -i ../patch_brightred.patch
  23. }
  24. build() {
  25. mkdir -p "$srcdir/$pkgname/src/"
  26. # 32-bit
  27. cd "$srcdir/$pkgname/src/"
  28. mkdir lib32
  29. cd lib32
  30. CFLAGS='-m32' cmake ../
  31. make
  32. # 64-bit
  33. cd "$srcdir/$pkgname/src/"
  34. mkdir lib
  35. cd lib
  36. CFLAGS='-m64' cmake ../
  37. make
  38. }
  39. package() {
  40. mkdir -p "$pkgdir/usr/"{bin,lib,lib32,share/stderred}
  41. install -m755 "$srcdir/$pkgname/src/lib"/libpolyfill.so "$pkgdir/usr/lib"
  42. install -m755 "$srcdir/$pkgname/src/lib"/libstderred.so "$pkgdir/usr/lib"
  43. install -m755 "$srcdir/$pkgname/src/lib"/libtest_stderred.so "$pkgdir/usr/lib"
  44. install -m755 "$srcdir/$pkgname/src/lib32"/libpolyfill.so "$pkgdir/usr/lib32"
  45. install -m755 "$srcdir/$pkgname/src/lib32"/libstderred.so "$pkgdir/usr/lib32"
  46. install -m755 "$srcdir/$pkgname/src/lib32"/libtest_stderred.so "$pkgdir/usr/lib32"
  47. install -m644 "$srcdir/$pkgname/usr/share/stderred/"stderred.sh "$pkgdir/usr/share/stderred/"
  48. install -m755 "$srcdir/$pkgname/usr/bin/"stderred "$pkgdir/usr/bin"
  49. install -m755 "$srcdir/$pkgname/usr/bin/"stderred "$pkgdir/usr/bin/"
  50. install -m644 "$srcdir/$pkgname/usr/share/stderred/"stderred.sh "$pkgdir/usr/share/stderred/"
  51. }