diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/sdcv/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/sdcv/PKGBUILD')
-rw-r--r-- | community/sdcv/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/sdcv/PKGBUILD b/community/sdcv/PKGBUILD new file mode 100644 index 000000000..dd1d87971 --- /dev/null +++ b/community/sdcv/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 57381 2011-10-26 16:44:58Z jlichtblau $ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + +pkgname=sdcv +pkgver=0.4.2 +pkgrel=6 +pkgdesc="StarDict Console Version" +arch=('i686' 'x86_64') +url="http://sdcv.sourceforge.net/" +license=('GPL') +depends=('glib2' 'readline' 'zlib') +makedepends=('patch') +provides=('stardict') +changelog=$pkgname.changelog +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 \ + $pkgname-$pkgver-headers.patch) +sha256sums=('a164f079e93986814ea2d39f3a49cf9d1b71b01aad908254457fe3d0ded9deb2' + '4746e32a6aaddf7744f373b539879598b48219a3b35f41ceb839f04c27921eb4') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + patch -Np1 -i ${srcdir}/$pkgname-$pkgver-headers.patch + + ./configure --prefix=/usr --mandir=/usr/share/man + +#quick fix for x86_64 + if [ "${CARCH}" == "x86_64" ]; then + sed -i 's|guint32 page_size|guint64 page_size|' src/lib/lib.cpp + fi + + make +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + + make DESTDIR=${pkgdir} install +} |