dzen.paketlendi

This commit is contained in:
milisbir 2017-09-08 07:38:52 +03:00
parent 9e59b429c3
commit 358368608d
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# Description: General purpose messaging, notification and menuing program for X11.
# URL: https://github.com/robm/dzen
# Maintainer: 6c37 Team, https://github.com/6c37/crux-ports-git/issues
# Depends on: xorg-libx11 xorg-libxpm xorg-libxinerama xorg-libxft
name=dzen
version=git
release=1
source=(https://github.com/robm/dzen/archive/master.tar.gz::$name-$version.tar.gz)
build() {
cd "$SRC"/$name-master
sed -i 's|DZEN_XMP|DZEN_XPM|g' main.c
CFLAGS="$CFLAGS -Wall -Os \${INCS} -DVERSION=\\\"\${VERSION}\\\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`"
LIBS=" -L/usr/lib -lc -lXft -lXpm -lXinerama -lX11"
echo "CFLAGS=$CFLAGS" >>config.mk
echo "LIBS=$LIBS" >>config.mk
echo "LDFLAGS=$LDFLAGS $LIBS" >>config.mk
make X11INC=/usr/include X11LIB=/usr/lib
(cd gadgets && make X11INC=/usr/include X11LIB=/usr/lib)
make PREFIX=/usr MANPREFIX=/usr/man DESTDIR="$PKG" install
(cd gadgets && make PREFIX=/usr MANPREFIX=/usr/man DESTDIR="$PKG" install)
install -Dm0644 LICENSE "$PKG"/usr/share/licenses/dzen2/COPYING
}