summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0274c7799ae41ca412257f94cb75ed1fa6c594ee (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=1.2.4
pkgdesc="Simple Terminal from suckless.org (Fork)"
url="https://git.ckyln.com/st"
arch=('i686' 'x86_64' 'aarch64')
license=('MIT')
depends=('libxft')
makedepends=('git')
source=('git://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"
}