aboutsummaryrefslogtreecommitdiffstats
path: root/main/st/APKBUILD
blob: 07384d68a4261b9461b4a6426c7e4b9f94a125ad (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
46
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=st
pkgver=0.5
pkgrel=0
pkgdesc="a simple terminal implementation for X"
url="http://st.suckless.org/"
arch="all"
license="MIT/X"
depends=""
depends_dev=""
makedepends="$depends_dev fontconfig-dev freetype-dev libx11-dev libxft-dev
	libxext-dev ncurses"
install=""
subpackages="$pkgname-doc"
source="http://dl.suckless.org/st/st-$pkgver.tar.gz
	0001-set-terminfo-directory-in-config.mk.patch"

_builddir="$srcdir"/st-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make PREFIX=/usr DESTDIR="$pkgdir" TERMINFODIR=/usr/share/terminfo \
		install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="4f8ae2737120a8cba34b23c6020fe51e  st-0.5.tar.gz
28103a441b3d307f5b18e91a014066ee  0001-set-terminfo-directory-in-config.mk.patch"
sha256sums="ae80ddfaf8146f7665772efc9b85e05e08be5087682a689ecdf71aa4d4bfdd4e  st-0.5.tar.gz
4d1f63941288eddc574c0edf34633e918a4008727c42b2a17fc485de7808ce8c  0001-set-terminfo-directory-in-config.mk.patch"
sha512sums="fb5d3b6dfb56f35c60a83164d0da2aef67d9fc23b81fdd7c26b9a618c92524a601db5fc4149a3a5054ca3306ecc80e104fa629ecb1516c047a726012237c83d5  st-0.5.tar.gz
5ea77eb64c2628bc94477924421013e73c0753a998ed3b2ad21d89a887c11b87349e9569f82c79b02fddacb4b1d9e0c76743fd02dae89dc625c6c68806ee7e3c  0001-set-terminfo-directory-in-config.mk.patch"