PKGBUILD 924 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
  2. _pkgname=thingutils
  3. pkgname=$_pkgname-git
  4. pkgver=20170126
  5. _gitver='commit=4c04b4de8266caf326d8915f129d42e3e83e0575'
  6. pkgdesc="Miscellaneous utilities by Luke Shumaker"
  7. url="https://lukeshu.com/git/thingutils.git"
  8. license=('MIT')
  9. provides=($_pkgname)
  10. conflicts=($_pkgname)
  11. pkgrel=1
  12. arch=('i686' 'x86_64')
  13. optdepends=(
  14. 'wdiff: for chardiff'
  15. 'acpi: for batterymon or tempmon'
  16. )
  17. makedepends=('go')
  18. source=("https://repo.parabola.nu/other/~lukeshu/$_pkgname/$pkgname-$pkgver.tar.gz")
  19. md5sums=('ee01884f973df6bb965f61053ff729c1')
  20. mkdepends=('git')
  21. mksource=("$pkgname-$pkgver::git://lukeshu.com/$_pkgname.git#$_gitver")
  22. mkmd5sums=('SKIP')
  23. build() {
  24. cd "$srcdir/$pkgname-$pkgver"
  25. make prefix=/usr
  26. }
  27. package() {
  28. cd "$srcdir/$pkgname-$pkgver"
  29. make install prefix=/usr DESTDIR="$pkgdir"
  30. install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
  31. }