summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ecb550cf9ef55e4badfeef8e01afc5c2e1056439 (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=conterm-git
pkgver=r124.ff04286
pkgrel=1
pkgdesc='Drawterm without graphical user interface. '
arch=('i686' 'x86_64')
url='https://github.com/0intro/conterm'
license=('MIT' 'LPL')
makedepends=('git')
conflicts=("${pkgname%-*}")
source=("$pkgname::git+$url")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/$pkgname"
	CONF=unix make
}

package() {
	cd "$srcdir/$pkgname"
	install -D -m755 drawterm $pkgdir/usr/bin/conterm
	install -D -m644 drawterm.ico $pkgdir/usr/share/pixmaps/conterm.ico
	install -D -m644 LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
}