summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c72c7f54ba8e55a908ea9953e0c3220f92e8b2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Papajoker <papajoke [at] archlinux [dot] info>
pkgname=pachook
pkgver=0.1.1.r7.a833abff
pkgrel=1
pkgdesc="simple administrator pacman hooks"
arch=('any')
url="https://github.com/papajoker/pachook"
license=('GPL')
depends=('pacman')
makedepends=('git')
source=("$pkgname::git+http://github.com/papajoker/pachook#branch=master")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/$pkgname"
  install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
  cp -r usr ${pkgdir}/
  cp -r etc ${pkgdir}/
}