diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2011-12-09 15:21:15 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2011-12-09 15:21:15 +0100 |
commit | 784f841dd02d4cf93e02aeab3e17cb7de1a7937f (patch) | |
tree | e5c1dc07e7ca785a346ef10efa7b43e212b7c884 /community/sword | |
parent | ebd15ff2a4a2dd51cc6d862bcef96a1b6d753336 (diff) | |
parent | 707457876743e969be9eb163c36928978df245cd (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/python-mpi4py/PKGBUILD
community/sword/PKGBUILD
community/xiphos/PKGBUILD
extra/bitlbee/PKGBUILD
extra/nicotine/PKGBUILD
extra/purple-plugin-pack/PKGBUILD
multilib/lib32-curl/PKGBUILD
multilib/lib32-glib2/PKGBUILD
Diffstat (limited to 'community/sword')
-rw-r--r-- | community/sword/PKGBUILD | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/community/sword/PKGBUILD b/community/sword/PKGBUILD index 3a3659dc6..950c35862 100644 --- a/community/sword/PKGBUILD +++ b/community/sword/PKGBUILD @@ -1,53 +1,57 @@ -# $Id: PKGBUILD 59377 2011-11-23 21:18:49Z andrea $ -# Maintainer: +# $Id: PKGBUILD 60193 2011-12-07 12:16:33Z arodseth $ +# Maintainer: Alexander Rødseth # Contributor: Stefan Husmann <stefan-husmann@t-online.de> # Contributor: TripleE <eric1548@yahoo.com> - pkgname=sword pkgver=1.6.2 -pkgrel=5 +pkgrel=6 pkgdesc="Libraries for Bible programs" -arch=('i686' 'x86_64' 'mips64el') -url="http://www.crosswire.org/sword/index.jsp" +arch=('x86_64' 'i686' 'mips64el') +url="http://www.crosswire.org/sword/" license=('GPL') depends=('curl' 'clucene' 'swig') makedepends=('cmake') backup=('etc/sword.conf') -source=("http://www.crosswire.org/ftpmirror/pub/${pkgname}/source/v1.6/${pkgname}-${pkgver}.tar.gz" curl.patch) +source=("http://www.crosswire.org/ftpmirror/pub/$pkgname/source/v1.6/$pkgname-$pkgver.tar.gz" + curl.patch) md5sums=('a7dc4456e20e915fec46d774b690e305' 'e84a226ce3697af33b9fdd9a22884a2a') build() { - cd "${srcdir}"/$pkgname-$pkgver - patch -p1 -i $srcdir/curl.patch + cd "$srcdir/$pkgname-$pkgver" + + patch -p1 -i ../curl.patch + + mkdir ../build + cd ../build - cd $srcdir - mkdir build - cd build - cmake ../${pkgname}-${pkgver} \ + cmake "../$pkgname-$pkgver" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release + make } package() { - cd "${srcdir}"/build - make DESTDIR="${pkgdir}" install + cd "$srcdir/build" + + make DESTDIR="$pkgdir" install - # Ugly workarounds to fix a weird cmakelists.txt - install -d "${pkgdir}"/usr/lib/sword - mv "${pkgdir}"/usr/lib/1.6.2_icu_4.8* "${pkgdir}"/usr/lib/sword/ + install -d "$pkgdir/usr/lib/sword" + mv "$pkgdir"/usr/lib/1.6.2_icu_4.8* "$pkgdir/usr/lib/sword/" - cd "${srcdir}"/${pkgname}-${pkgver}/locales.d/ + cd "$srcdir/$pkgname-$pkgver/locales.d/" for file in *.conf; do - install -Dm644 $file "${pkgdir}"/usr/share/sword/locales.d/$file + install -Dm644 "$file" "$pkgdir/usr/share/sword/locales.d/$file" done cd ../include - install -d "${pkgdir}"/usr/include/sword - install -Dm644 canon_{catholic{,2},synodalp}.h "${pkgdir}"/usr/include/sword + install -d "$pkgdir/usr/include/sword" + install -Dm644 canon_{catholic{,2},synodalp}.h "$pkgdir/usr/include/sword" cd ../samples - install -Dm644 mods.d/globals.conf "${pkgdir}"/usr/share/sword/mods.d/globals.conf - install -Dm644 recommended/sword.conf "${pkgdir}"/etc/sword.conf + install -Dm644 mods.d/globals.conf "$pkgdir/usr/share/sword/mods.d/globals.conf" + install -Dm644 recommended/sword.conf "$pkgdir/etc/sword.conf" } + +# vim:set ts=2 sw=2 et: |