2013-11-24 17:45:15 +01:00
|
|
|
# Template file for 'dzen2'
|
|
|
|
pkgname=dzen2
|
2014-06-23 11:46:40 +02:00
|
|
|
version=20140623
|
2013-11-24 17:45:15 +01:00
|
|
|
revision=1
|
2014-07-27 16:05:16 +02:00
|
|
|
hostmakedepends="pkg-config git"
|
2013-11-24 17:45:15 +01:00
|
|
|
makedepends="libXinerama-devel libXft-devel libXpm-devel"
|
|
|
|
short_desc="X notification utility"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://github.com/robm/dzen"
|
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
git clone git://github.com/robm/dzen ${pkgname}-${version}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
CFLAGS+=' -Wall -I. -DVERSION=\"${VERSION}\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`'
|
|
|
|
LIBS='`pkg-config --libs xpm` `pkg-config --libs xinerama` `pkg-config --libs xft`'
|
|
|
|
sed -e '/strip/d' -i Makefile gadgets/Makefile
|
|
|
|
|
|
|
|
make CC="$CC" LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS $LIBS"
|
|
|
|
cd gadgets
|
|
|
|
make CC="$CC" LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS $LIBS"
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=${DESTDIR} install
|
2013-11-24 17:46:45 +01:00
|
|
|
vinstall LICENSE 644 usr/share/licenses/dzen2
|
|
|
|
|
2013-11-24 17:45:15 +01:00
|
|
|
cd gadgets
|
|
|
|
make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=${DESTDIR} install
|
|
|
|
}
|