blob: 1f0f2f7f2c213b4cdf7f7d42f3f5c20df93e8438 [file] [log] [blame]
Andrew Geisslerd688a012020-09-18 13:36:00 -05001SECTION = "shadow"
2LICENSE = "MIT-X"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=04c3ca13a702147c62db90f556c5b3ca"
4SRC_URI = "http://dl.suckless.org/${BPN}/${BP}.tar.gz"
5
6inherit pkgconfig features_check
7
8REQUIRED_DISTRO_FEATURES = "x11"
9
10SRC_URI[sha256sum] = "d42d3ceceb4d6a65e32e90a5336e3d446db612c3fbd9ebc1780bc6c9a03346a6"
11
12DEPENDS += "libx11 libxft fontconfig ncurses-native"
13
14RDEPENDS_${PN} += "libx11-locale"
15
16do_compile() {
17 make INCS='-I. `pkg-config --cflags x11 fontconfig xft`' LIBS='-lm -lutil `pkg-config --libs x11 fontconfig xft`'
18}
19do_install() {
20 make install DESTDIR=${D} PREFIX=/usr TERMINFO=${D}${datadir}/terminfo
21}
22
23FILES_${PN} += " \
24 ${datadir}/terminfo \
25"
Andrew Geisslera2681d92020-10-16 10:17:07 -050026
27inherit update-alternatives
28
29ALTERNATIVE_PRIORITY = "50"
30
31ALTERNATIVE_${PN} = "st st-256color"
32
33ALTERNATIVE_LINK_NAME[st] = "${datadir}/terminfo/s/st"
34
35ALTERNATIVE_LINK_NAME[st-256color] = "${datadir}/terminfo/s/st-256color"