aboutsummaryrefslogtreecommitdiffstats
path: root/main/st/APKBUILD
blob: 15a2bf86dd180f9291211ce1796f12f5997d68e7 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=st
pkgver=0.7
pkgrel=0
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/$pkgname/$pkgname-$pkgver.tar.gz
	cleanup-cflags.patch
	terminfo.patch"

builddir="$srcdir"/$pkgname-$pkgver
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="29b2a599cf1511c8062ed8f025c84c63  st-0.7.tar.gz
7b352a681fd6d8567bd286d8b4a22b39  cleanup-cflags.patch
68a69a4b8c521392aad2c1ff9b77a043  terminfo.patch"
sha256sums="f7870d906ccc988926eef2cc98950a99cc78725b685e934c422c03c1234e6000  st-0.7.tar.gz
4aed2529406dc91d19dbe2bf8563d42a73d3d6a290ea9c12e897bf3a4237c043  cleanup-cflags.patch
e103aa13cebf6f85be34c38b8457f69fdd1c168618bc07d7bba1d9b2ccf8ac6c  terminfo.patch"
sha512sums="9384820d373bfaaef1887290351d8c34abeef26cd7d50ddbae56ffb865864bcca9be798c6238bf1ce595ba7c317f2c1d97653055da0aa302e322eeee822768d4  st-0.7.tar.gz
d2083c4e6c577d3d4190b3f2d58898b5afdfeb5160def29958cf11433c59aea4917a799f447dffcaba4a7f80c989d88f6ce96234a8afd732653bf8a871484a1e  cleanup-cflags.patch
9099d7c7dc557583179ec6d630419b067297520f788df6623236822cc4b6d2288ca93d25f3ae6c9169ca2a2357e5b7955eb1c0463b01efad5ee9c2e8c5db35ee  terminfo.patch"