aboutsummaryrefslogtreecommitdiffstats
path: root/main/st/APKBUILD
blob: 2559fb670aad5c8f172936efb4273d51db8ab771 (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
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=st
pkgver=0.6
pkgrel=2
pkgdesc="a simple terminal implementation for X"
url="http://st.suckless.org/"
arch="all"
license="MIT/X"
depends="ncurses-terminfo"
depends_dev=""
makedepends="$depends_dev fontconfig-dev freetype-dev libx11-dev libxft-dev
	libxext-dev"
install=""
subpackages="$pkgname-doc"
source="http://dl.suckless.org/st/st-$pkgver.tar.gz
	terminfo.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" install || return 1
	mkdir -p "$pkgdir"/usr/share/applications

	cat >"$pkgdir"/usr/share/applications/st.desktop <<EOF
[Desktop Entry]
Name=st
Comment=st is a simple virtual terminal emulator for X which sucks less
Exec=st
Terminal=false
Type=Application
Icon=gnome-xterm
Categories=System;TerminalEmulator;
EOF

}

md5sums="1a926f450b4eacb7e2f5ac5b8ffea7c8  st-0.6.tar.gz
68a69a4b8c521392aad2c1ff9b77a043  terminfo.patch"
sha256sums="85310c08c3814e099b5e45888f8ac7548640e69e9973e934d4fba38b03737a2b  st-0.6.tar.gz
e103aa13cebf6f85be34c38b8457f69fdd1c168618bc07d7bba1d9b2ccf8ac6c  terminfo.patch"
sha512sums="31e4b6d2b27d6cea79d6a31dabd7ff4e08a8ab376f06c113123810c05eab25e3964482a6429eecd65c369983cc8ee3694f367e3894ed2cc740c67738c1898d29  st-0.6.tar.gz
9099d7c7dc557583179ec6d630419b067297520f788df6623236822cc4b6d2288ca93d25f3ae6c9169ca2a2357e5b7955eb1c0463b01efad5ee9c2e8c5db35ee  terminfo.patch"