summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c540c5c924a8b7962e28f7583acad8f53d87ea1 (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
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Frantisek Fladung <ametisf@gmail.com>

pkgname=st-ametisf-git
_pkgname=st
pkgver=986.f4f6a5d
pkgrel=1
pkgdesc='Port of simple terminal to wayland - ametisf fork'
url='http://github.com/ametisf/st'
arch=('i686' 'x86_64')
license=('MIT')
options=('zipman')
depends=('libxft')
makedepends=('ncurses' 'libxext' 'git' 'tup')
epoch=1
# include config.h and any patches you want to have applied here
source=('git+https://github.com/ametisf/st.git')
sha1sums=('SKIP')

provides=($_pkgname)
conflicts=($_pkgname)

pkgver() {
	cd $_pkgname
	echo $(git rev-list --count master).$(git rev-parse --short master)
}

prepare() {
	cd $_pkgname
	cat >> config.tup << "EOF"
ENABLE_DEBUG=0
BUILD_STATIC=0
EOF
}

build() {
	cd $_pkgname
	tup init
	tup upd
}

package() {
	mkdir -p $pkgdir/usr/{bin,share/licenses/$pkgname}
	install -m 755 $_pkgname/st $pkgdir/usr/bin
	install -m 644 $_pkgname/LICENSE $pkgdir/usr/share/licenses/$pkgname
}