blob: 57f2628239d83817d203e4da757b7a246c39860f (
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
26
|
# Maintainer: Papajoker <papajoke [at] archlinux [dot] info>
pkgname=pachook
pkgver=0.1.0.r2.g1df7b0f
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")
noextract=()
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}/
}
|