mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
New package: dzen2; close #205.
This commit is contained in:
parent
cfe2638201
commit
faaefb881d
1 changed files with 37 additions and 0 deletions
37
srcpkgs/dzen2/template
Normal file
37
srcpkgs/dzen2/template
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# Template file for 'dzen2'
|
||||||
|
pkgname=dzen2
|
||||||
|
version=20131124
|
||||||
|
revision=1
|
||||||
|
hostmakedepends="pkg-config"
|
||||||
|
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
|
||||||
|
cd gadgets
|
||||||
|
make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=${DESTDIR} install
|
||||||
|
vinstall LICENSE 644 usr/share/licenses/dzen2
|
||||||
|
}
|
||||||
|
|
||||||
|
dzen2_package() {
|
||||||
|
pkg_install() {
|
||||||
|
vmove all
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue