summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a92273fa84e272cd00d868c2bc823d6b857cbf4 (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
27
28
29
30
31
32
33
# Maintainer: Albert Berger < nbdspcl at gmail dot com>
pkgname=pacliner-git
pkgver=0.1.r1
pkgrel=1
pkgdesc="Archlinux package management helper."
arch=('any')
url="https://github.com/nbdsp/pacliner.git"
license=('GPL')
groups=()
depends=('bash','perl')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname%-git}::git+$url#branch=master")
noextract=()
md5sums=('SKIP')


pkgver() {
	cd "${pkgname%-git}"

	printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

package() {
	cd "${pkgname%-git}"
	install -Dm755 "${pkgname%-git}.sh" "$pkgdir/usr/bin/${pkgname%-git}"
	install -Dm644 "${pkgname%-git}.1" "$pkgdir/usr/share/man/man1/"${pkgname%-git}"
}