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 | |
| 14 | RDEPENDS_${PN} += "libx11-locale" |
| 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 | |
| 23 | FILES_${PN} += " \ |
| 24 | ${datadir}/terminfo \ |
| 25 | " |