aboutsummaryrefslogtreecommitdiff
path: root/recipes/dzen2/dzen2_svn.bb
blob: ed266b19beb646019444914ace510d21ffc38227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DESCRIPTION = "dzen is a general purpose messaging, notification and menu program."
LICENSE = "MIT"
DEPENDS = "virtual/libx11 libxft"
RDEPENDS_${PN} = "ttf-dejavu-sans xrandr"

SRCREV = "271"
PV = "0.8.5+svnr${SRCPV}"
PR = "r4"

SRC_URI = "svn://dzen.googlecode.com/svn/;module=trunk;proto=http \
	   file://dzen-extras.tar.gz \
	   file://Makefile"

S = "${WORKDIR}/trunk"

FILES_${PN} = "/usr/bin /usr/share/dzen"

do_configure() {
	install -m 0644 ${WORKDIR}/Makefile ${S}/Makefile
	cat <<EOF > config.mk
VERSION = ${PV}

PREFIX = /usr
MANPREFIX = /usr/share/man

INCS = -DDZEN_XFT -DVERSION=\"${PV}\" `pkg-config --cflags xft` 
LIBS = -lc -lX11 `pkg-config --libs xft`
EOF
}

do_install() {
	oe_runmake install DESTDIR=${D}
}

SRC_URI[md5sum] = "5978620c2124c8a8ad52d7f17ce94fd7"
SRC_URI[sha256sum] = "5e4ce96e8ed22a4a0ad6cfafacdde0532d13d049d77744214b196c4b2bcddff9"