blob: 517d467abdcd18f15190347d6431ec3c208059a4 [file] [log] [blame]
Andrew Geisslerd688a012020-09-18 13:36:00 -05001SECTION = "shadow"
Andrew Geissler9aee5002022-03-30 16:27:02 +00002LICENSE = "MIT"
Patrick Williams2194f502022-10-16 14:26:09 -05003LIC_FILES_CHKSUM = "file://LICENSE;md5=703e9835709f45ee7b81082277f1daec"
Andrew Geisslerd688a012020-09-18 13:36:00 -05004SRC_URI = "http://dl.suckless.org/${BPN}/${BP}.tar.gz"
5
6inherit pkgconfig features_check
7
8REQUIRED_DISTRO_FEATURES = "x11"
9
Patrick Williams2194f502022-10-16 14:26:09 -050010SRC_URI[sha256sum] = "f36359799734eae785becb374063f0be833cf22f88b4f169cd251b99324e08e7"
Andrew Geisslerd688a012020-09-18 13:36:00 -050011
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"