aboutsummaryrefslogtreecommitdiffstats
path: root/main/dzen
diff options
context:
space:
mode:
authorOlivier Mauras <olivier@mauras.ch>2015-03-25 00:18:18 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-30 14:31:57 +0000
commitd497da1246408444cfdffdcfa44c5dd7a6623234 (patch)
treeedec7a763264a64869004b8106e48b5998e51020 /main/dzen
parent246735512b73a6147c8626a9ac817d47be02d3dd (diff)
downloadaports-d497da1246408444cfdffdcfa44c5dd7a6623234.tar.bz2
aports-d497da1246408444cfdffdcfa44c5dd7a6623234.tar.xz
main/dzen: Enable Xinerama and XPM
Diffstat (limited to 'main/dzen')
-rw-r--r--main/dzen/0001-Enable-Xinerama-and-XPM.patch38
-rw-r--r--main/dzen/APKBUILD24
2 files changed, 56 insertions, 6 deletions
diff --git a/main/dzen/0001-Enable-Xinerama-and-XPM.patch b/main/dzen/0001-Enable-Xinerama-and-XPM.patch
new file mode 100644
index 0000000000..2c8e80f9d2
--- /dev/null
+++ b/main/dzen/0001-Enable-Xinerama-and-XPM.patch
@@ -0,0 +1,38 @@
+From 7567726279137c6af5c62a52a1fa32d4a7c2b56e Mon Sep 17 00:00:00 2001
+From: Olivier Mauras <olivier@mauras.ch>
+Date: Tue, 24 Mar 2015 14:30:32 +0100
+Subject: [PATCH] Enable Xinerama and XPM
+
+---
+ config.mk | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index 311f785..0cd233e 100644
+--- a/config.mk
++++ b/config.mk
+@@ -39,8 +39,8 @@ INCS = -I. -I/usr/include -I${X11INC}
+
+
+ ## Option 5: With XFT
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs xft`
+-CFLAGS = -Wall -Os ${INCS} -DVERSION=\"${VERSION}\" -DDZEN_XFT `pkg-config --cflags xft`
++#LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs xft`
++#CFLAGS = -Wall -Os ${INCS} -DVERSION=\"${VERSION}\" -DDZEN_XFT `pkg-config --cflags xft`
+
+
+ ## Option 6: With XPM and XFT
+@@ -54,8 +54,8 @@ CFLAGS = -Wall -Os ${INCS} -DVERSION=\"${VERSION}\" -DDZEN_XFT `pkg-config --cfl
+
+
+ ## Option 8: With Xinerama and XPM and XFT
+-#LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lXinerama -lXpm `pkg-config --libs xft`
+-#CFLAGS = -Wall -Os ${INCS} -DVERSION=\"${VERSION}\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`
++LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lXinerama -lXpm `pkg-config --libs xft`
++CFLAGS = -Wall -Os ${INCS} -DVERSION=\"${VERSION}\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`
+
+
+
+--
+2.3.3
+
diff --git a/main/dzen/APKBUILD b/main/dzen/APKBUILD
index 16772e5627..7d280fdb97 100644
--- a/main/dzen/APKBUILD
+++ b/main/dzen/APKBUILD
@@ -2,21 +2,30 @@
pkgname=dzen
_pkgver=488ab66
pkgver=0.9.5
-pkgrel=0
+pkgrel=1
pkgdesc="A general purpose messaging, notification and menuing program for X11"
url="https://github.com/robm/dzen"
arch="all"
license="MIT"
depends=""
depends_dev=""
-makedepends="libx11-dev libxft-dev"
+makedepends="libx11-dev libxft-dev libxinerama-dev libxpm-dev"
options=""
install=""
subpackages="$pkgname-gadgets"
-source="$pkgname-$pkgver.tar.gz::$url/tarball/$_pkgver"
+source="$pkgname-$pkgver.tar.gz::$url/tarball/$_pkgver 0001-Enable-Xinerama-and-XPM.patch"
_builddir="$srcdir"/robm-$pkgname-$_pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
build() {
cd "$_builddir"
make || return 1
@@ -35,6 +44,9 @@ gadgets() {
make PREFIX=/usr DESTDIR="$subpkgdir" install
}
-md5sums="dbc2c84321a070201da0de47463692f9 dzen-0.9.5.tar.gz"
-sha256sums="d4f7943cd39dc23fd825eb684b49dc3484860fa8443d30b06ee38af72a53b556 dzen-0.9.5.tar.gz"
-sha512sums="239acfcacbc871ded5755ee0d5cca3185fcd93142bcf81552974f2ffc19d9f5ebdc02956108931f58b35c68ac57ec6e748bdb9cdbf7791ec6e224ef270bda300 dzen-0.9.5.tar.gz"
+md5sums="dbc2c84321a070201da0de47463692f9 dzen-0.9.5.tar.gz
+823d3aab9cc1c2211e6ee9271ee9993a 0001-Enable-Xinerama-and-XPM.patch"
+sha256sums="d4f7943cd39dc23fd825eb684b49dc3484860fa8443d30b06ee38af72a53b556 dzen-0.9.5.tar.gz
+b2a98a7fd3b59ef3c40c032670d82d771d738d2f1ae22830421033c56ef819fe 0001-Enable-Xinerama-and-XPM.patch"
+sha512sums="239acfcacbc871ded5755ee0d5cca3185fcd93142bcf81552974f2ffc19d9f5ebdc02956108931f58b35c68ac57ec6e748bdb9cdbf7791ec6e224ef270bda300 dzen-0.9.5.tar.gz
+06cf3474926e7f2d612e36a96e10673a2d261a9a1dd9fec8c2382f1ceb9f1d203232980d73910723cd050d6d25c14ef2fae81b6413a58056a183fec1936cd73a 0001-Enable-Xinerama-and-XPM.patch"