PKGBUILD 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
  2. _pkgname=emacsutils
  3. pkgname=$_pkgname-git
  4. _pkgver=0.9
  5. pkgver=20170716
  6. _gitver='commit=efecac8688ffd15e292a9cca722e16bdb97795e6'
  7. pkgdesc="Utilities for interacting with GNU Emacs from a *NIX environment"
  8. url="https://lukeshu.com/git/$_pkgname.git"
  9. license=('GPL3')
  10. provides=("$_pkgname=$_pkgver")
  11. conflicts=("$_pkgname")
  12. pkgrel=2
  13. arch=('any')
  14. depends=('emacs')
  15. source=("https://repo.parabola.nu/other/~lukeshu/$_pkgname/$pkgname-$pkgver.tar.gz")
  16. md5sums=('521559ae048f29361fe786ce6f25e3b6')
  17. mkdepends=('git')
  18. mksource=(".$pkgname-$pkgver::git://git.lukeshu.com/$_pkgname.git#$_gitver")
  19. mkmd5sums=('SKIP')
  20. mksource() {
  21. cd "$srcdir/.$pkgname-$pkgver"
  22. make dist
  23. mv "$_pkgname"-*/ ../"$pkgname-$pkgver"
  24. }
  25. _config=(
  26. VERSION=${_pkgver}.${pkgver}
  27. prefix=/usr
  28. libexecdir='$(libdir)'
  29. )
  30. build() {
  31. cd "$srcdir/$pkgname-$pkgver"
  32. make "${_config[@]}"
  33. }
  34. package() {
  35. cd "$srcdir/$pkgname-$pkgver"
  36. make "${_config[@]}" install DESTDIR="$pkgdir"
  37. }