2013-11-24 16:45:15 +00:00
|
|
|
# Template file for 'dzen2'
|
|
|
|
pkgname=dzen2
|
2015-07-27 11:05:00 +00:00
|
|
|
reverts=20140623_1
|
|
|
|
version=20130923
|
2013-11-24 16:45:15 +00:00
|
|
|
revision=1
|
2015-07-27 11:05:00 +00:00
|
|
|
_commit=488ab66019f475e35e067646621827c18a879ba1
|
|
|
|
wrksrc=dzen-$_commit
|
|
|
|
hostmakedepends="pkg-config"
|
2013-11-24 16:45:15 +00:00
|
|
|
makedepends="libXinerama-devel libXft-devel libXpm-devel"
|
|
|
|
short_desc="X notification utility"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-11-24 16:45:15 +00:00
|
|
|
license="MIT"
|
|
|
|
homepage="https://github.com/robm/dzen"
|
2015-07-27 11:05:00 +00:00
|
|
|
distfiles="$homepage/archive/$_commit.tar.gz"
|
|
|
|
checksum=6861f6ff918055b286b650f33aef97df9bcf1891a255dc5d57850f6420ecdb7c
|
2013-11-24 16:45:15 +00:00
|
|
|
|
|
|
|
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 16:46:45 +00:00
|
|
|
vinstall LICENSE 644 usr/share/licenses/dzen2
|
|
|
|
|
2013-11-24 16:45:15 +00:00
|
|
|
cd gadgets
|
|
|
|
make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=${DESTDIR} install
|
|
|
|
}
|