summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8de582a4813d57827165a0ecff4eb27520d301c (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
# Maintainer: Kian Kasad <kian@kasad.com>

pkgname=kirc-git
pkgver=0.1.8.r0.8022754
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}")
source=("git+$url")
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" PREFIX="/usr" install
	install -TDm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}