blob: e88c2c0f0900ccbbea198670c6d5e527e74f2b73 [file] [log] [blame]
SECTION = "shadow"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=04c3ca13a702147c62db90f556c5b3ca"
SRC_URI = "http://dl.suckless.org/${BPN}/${BP}.tar.gz"
inherit pkgconfig features_check
REQUIRED_DISTRO_FEATURES = "x11"
SRC_URI[sha256sum] = "ea6832203ed02ff74182bcb8adaa9ec454c8f989e79232cb859665e2f544ab37"
DEPENDS += "libx11 libxft fontconfig ncurses-native"
RDEPENDS:${PN} += "libx11-locale"
do_compile() {
make INCS='-I. `pkg-config --cflags x11 fontconfig xft`' LIBS='-lm -lutil `pkg-config --libs x11 fontconfig xft`'
}
do_install() {
make install DESTDIR=${D} PREFIX=/usr TERMINFO=${D}${datadir}/terminfo
}
FILES:${PN} += " \
${datadir}/terminfo \
"
inherit update-alternatives
ALTERNATIVE_PRIORITY = "50"
ALTERNATIVE:${PN} = "st st-256color"
ALTERNATIVE_LINK_NAME[st] = "${datadir}/terminfo/s/st"
ALTERNATIVE_LINK_NAME[st-256color] = "${datadir}/terminfo/s/st-256color"