summaryrefslogtreecommitdiff
path: root/repo/st/st.xibuild
blob: 9744af43933f52b5cf35ea30f1264c94270e6363 (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
#!/bin/sh

NAME="st"
DESC="Simple terminal emulator for X"

MAKEDEPS="fontconfig freetype2 libx11 libxext libxft"

PKG_VER=0.8.5
SOURCE="https://dl.suckless.org/st/st-$PKG_VER.tar.gz"

prepare() {
	default_prepare
	sed -i '/tic/d' Makefile
}

build() {
	CC="cc" make
}

package() {
	make install PREFIX=/usr DESTDIR="$PKG_DEST"
	mkdir -p "$PKG_DEST"/usr/share/applications

	cat > "$PKG_DEST"/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
}