aboutsummaryrefslogtreecommitdiffstats
path: root/main/st/APKBUILD
blob: 1c34ca6c4d2db036fdda4b9820bb73736536f402 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=st
pkgver=0.7
pkgrel=1
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 $pkgname-dbg"
source="http://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz
	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
68a69a4b8c521392aad2c1ff9b77a043  terminfo.patch"
sha256sums="f7870d906ccc988926eef2cc98950a99cc78725b685e934c422c03c1234e6000  st-0.7.tar.gz
e103aa13cebf6f85be34c38b8457f69fdd1c168618bc07d7bba1d9b2ccf8ac6c  terminfo.patch"
sha512sums="9384820d373bfaaef1887290351d8c34abeef26cd7d50ddbae56ffb865864bcca9be798c6238bf1ce595ba7c317f2c1d97653055da0aa302e322eeee822768d4  st-0.7.tar.gz
9099d7c7dc557583179ec6d630419b067297520f788df6623236822cc4b6d2288ca93d25f3ae6c9169ca2a2357e5b7955eb1c0463b01efad5ee9c2e8c5db35ee  terminfo.patch"