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