blob: acd4cab96578ad0c745a784f077e8f170b79e632 [file] [log] [blame]
Andrew Geisslerd688a012020-09-18 13:36:00 -05001SECTION = "shadow"
Andrew Geissler9aee5002022-03-30 16:27:02 +00002LICENSE = "MIT"
Andrew Geisslerd688a012020-09-18 13:36:00 -05003LIC_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
Patrick Williams213cb262021-08-07 19:21:33 -050014RDEPENDS:${PN} += "libx11-locale"
Andrew Geisslerd688a012020-09-18 13:36:00 -050015
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
Patrick Williams213cb262021-08-07 19:21:33 -050023FILES:${PN} += " \
Andrew Geisslerd688a012020-09-18 13:36:00 -050024 ${datadir}/terminfo \
25"
Andrew Geisslera2681d92020-10-16 10:17:07 -050026
27inherit update-alternatives
28
29ALTERNATIVE_PRIORITY = "50"
30
Patrick Williams213cb262021-08-07 19:21:33 -050031ALTERNATIVE:${PN} = "st st-256color"
Andrew Geisslera2681d92020-10-16 10:17:07 -050032
33ALTERNATIVE_LINK_NAME[st] = "${datadir}/terminfo/s/st"
34
35ALTERNATIVE_LINK_NAME[st-256color] = "${datadir}/terminfo/s/st-256color"