summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d80783d85a1dc24de94558796c620cdf2bfd718c (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: Cem Keylan <cem at ckyln dot com>

pkgname=st-ckyln-git
_pkgname=st
pkgrel=1
pkgver=v20190626.3.gcc6bc9b
pkgdesc="Simple Terminal from suckless.org (Fork)"
url="https://git.ckyln.com/st"
arch=('i686' 'x86_64')
license=('MIT')
depends=('libxft')
makedepends=('git')
source=('git+https://git.ckyln.com/st')
md5sums=('SKIP')

provides=('st')
conflicts=('st')

pkgver() {
	cd ${_pkgname}
	git describe --tags | sed 's/-/./g'
}
build() {
	cd $srcdir/${_pkgname}
	make
}

package() {
	cd ${_pkgname}
	make PREFIX=/usr DESTDIR="${pkgdir}" install
	install -Dm644 LICENSE "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
}