diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-12-16 21:24:46 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-12-16 21:24:46 -0200 |
commit | d0cc7135827ddf4fdeea1d7846ff2c03dab82b02 (patch) | |
tree | 7a905b838a77e5f21b2ae3a8bd86a2685271ec27 /pcr/wmii-hg | |
parent | 71cc202a7c4a9ed18669c2bead3c17ca0fcd5e38 (diff) | |
parent | c8414c0a7a97bc5fd3c9be59d225cd5f0261e322 (diff) |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/wmii-hg')
-rw-r--r-- | pcr/wmii-hg/PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pcr/wmii-hg/PKGBUILD b/pcr/wmii-hg/PKGBUILD new file mode 100644 index 000000000..c556a1b88 --- /dev/null +++ b/pcr/wmii-hg/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +# Maintainer (AUR): N30N <archlinux@alunamation.com> +# Contributor: Anthony Martin <ality@pbrane.org> +# Contributer: thomasd <thdahms@gmx.de> +# Contributer: karnath <karnath@pop3.ru> +# Contributer: MrBougo <bougospam@gmail.com> +# Contributor: Wolf Ramovsky <wolf.ramovsky@gmail.com> + +pkgname=wmii-hg +pkgver=2813 +pkgdesc="A small, dynamic window manager for X11" +url="https://code.google.com/p/wmii/" +license=("MIT") + +provides=("wmii") +conflicts=("wmii") + +pkgrel=1 +arch=("i686" "x86_64") +depends=('libxft' 'libxrandr' 'libxinerama') +makedepends=('txt2tags' 'libixp') # libixp is statically linked + +source=("libre://${pkgname}-${pkgver}.tar.gz") +md5sums=('74eb9f91000321b587e7826be999d4de') + +mkdepends=('mercurial') +mksource=("$pkgname-$pkgver::hg+https://code.google.com/p/wmii/#revision=${pkgver}") +mkmd5sums=('SKIP') +mksource() { + # don't include this precompiled binary (probably included by accident) + rm "${srcdir}/${pkgname}-${pkgver}/lib/libutf/libutf.a" +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + export LDFLAGS+=',--no-as-needed' + 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 + echo 'CFLAGS += -O2' >> config.mk + sed -i 's# !=#!=#' mk/hdr.mk + + export MAKEFLAGS="-j1" + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + + install -Dm644 img/wmii.png "${pkgdir}"/usr/share/pixmaps/wmii.png + install -Dm644 debian/file/wmii.desktop "${pkgdir}"/usr/share/xsessions/wmii.desktop + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} |