summaryrefslogtreecommitdiff
path: root/pcr/wmii-hg/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-01-16 12:13:21 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-01-16 12:13:21 -0200
commit3ffa185e97b9da15ccacfa7d035ba59a683b23a0 (patch)
tree05b980f33b729a161e45860e393e576c357258a7 /pcr/wmii-hg/PKGBUILD
parent3ecbb24041a6bb85456663a65cb4a6cdde27b706 (diff)
parent0967515f4c4e5813522e9a4798548b7178905c74 (diff)
downloadabslibre-3ffa185e97b9da15ccacfa7d035ba59a683b23a0.tar.gz
abslibre-3ffa185e97b9da15ccacfa7d035ba59a683b23a0.tar.bz2
abslibre-3ffa185e97b9da15ccacfa7d035ba59a683b23a0.zip
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre/abslibre
Diffstat (limited to 'pcr/wmii-hg/PKGBUILD')
-rw-r--r--pcr/wmii-hg/PKGBUILD21
1 files changed, 15 insertions, 6 deletions
diff --git a/pcr/wmii-hg/PKGBUILD b/pcr/wmii-hg/PKGBUILD
index 0bbd17b50..52f636636 100644
--- a/pcr/wmii-hg/PKGBUILD
+++ b/pcr/wmii-hg/PKGBUILD
@@ -12,13 +12,15 @@ license=("MIT")
provides=("wmii")
conflicts=("wmii")
-pkgrel=1
+pkgrel=2
arch=("i686" "x86_64")
depends=('libxft' 'libxrandr' 'libxinerama')
makedepends=('txt2tags' 'libixp') # libixp is statically linked
-source=("https://repo.parabola.nu/other/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-md5sums=('8228a299cb83258ab3988b6131d2cbb8')
+source=("https://repo.parabola.nu/other/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ fix-for-weird-xinerama-settings.patch)
+md5sums=('8228a299cb83258ab3988b6131d2cbb8'
+ '39a1381c701e67a71deb434b3cb74c31')
mkdepends=('mercurial')
mksource=("$pkgname-$pkgver::hg+https://code.google.com/p/wmii/#revision=${pkgver}")
@@ -28,16 +30,23 @@ mksource() {
rm "${srcdir}/${pkgname}-${pkgver}/lib/libutf/libutf.a"
}
-build() {
+prepare() {
cd "$srcdir/$pkgname-$pkgver"
- export LDFLAGS+=',--no-as-needed'
+ patch -p1 -N -i ../fix-for-weird-xinerama-settings.patch
+ sed -i 's# !=#!=#' mk/hdr.mk
+
sed -i 's|PREFIX = /usr/local|PREFIX = /usr|' config.mk
sed -i 's|ETC = $(PREFIX)/etc|ETC = /etc|' config.mk
sed -i 's|PYTHON = .*|PYTHON = python2|' config.mk
+ sed -i '/^CFLAGS += -O2$/d' config.mk
echo 'CFLAGS += -O2' >> config.mk
- sed -i 's# !=#!=#' mk/hdr.mk
+}
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ export LDFLAGS+=',--no-as-needed'
export MAKEFLAGS="-j1"
make
}