summaryrefslogtreecommitdiff
path: root/recipes/oneko/oneko_1.2.sakura.5.bb
blob: 4c9940596bdcabca9d10c2c1dd02c299ee29e890 (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
37
38
DESCRIPTION = "Small cat chasing mouse cursor"
AUTHOR = "Tatsuya Kato"
HOMEPAGE = "http://www.daidouji.com/oneko/"
SECTION = "x11/applications"
PRIORITY = "optional"
LICENSE = "PD"
DEPENDS = "virtual/libx11 libxext"

SRC_URI = "http://www.daidouji.com/oneko/distfiles/oneko-${PV}.tar.gz \
           file://oneko.desktop \
           file://kill-oneko.desktop \
	   file://oneko.png \
	   file://kill-oneko.png \
	   file://remove-bsd-daemon-logo.patch"

inherit pkgconfig 

do_compile() {
	${CC} oneko.c -o oneko -lm `pkg-config  --cflags --libs x11 xext` \
	-DSHAPE
}

do_install() {
	install -d ${D}/${bindir}
	install -d ${D}/${datadir}/applications
	install -d ${D}/${datadir}/pixmaps
	install -d ${D}/${mandir}/man6
	install -m 0755 ${S}/oneko ${D}/${bindir}
	install -m 0644 ${WORKDIR}/*oneko.png ${D}/${datadir}/pixmaps
	install -m 0644 ${WORKDIR}/*oneko.desktop ${D}/${datadir}/applications
	install -m 0644 ${S}/oneko.man ${D}/${mandir}/man6/oneko.6
}




SRC_URI[md5sum] = "456b318fa6e61431bf4f0a42b110014a"
SRC_URI[sha256sum] = "2c2e05f1241e9b76f54475b5577cd4fb6670de058218d04a741a04ebd4a2b22f"