aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 955a1eabf01c032b530be466f38fd6ad0ca623ec (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
pkgname=kirc-git
pkgver=0.0.6.r0.6a019c7
pkgrel=1
pkgdesc="KISS for IRC, an IRC client written in POSIX C99"
arch=(any)
url="https://github.com/mcpcpc/kirc"
license=('MIT')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('kirc::git+https://github.com/mcpcpc/kirc.git')
md5sums=('SKIP')

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

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

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir" install
}