diff options
author | int | 2017-09-23 20:38:58 +0200 |
---|---|---|
committer | int | 2017-09-23 20:38:58 +0200 |
commit | f035053f75f267f11af50b81828fd1dda66034f5 (patch) | |
tree | 81539f9f994ef47c5c904dfba1b93fda04636f52 | |
download | aur-f035053f75f267f11af50b81828fd1dda66034f5.tar.gz |
Added new package zebra.
Zebra is one of the dependencies of Koha: https://koha-community.org/
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 55 |
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..866e630156d9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = zebra + pkgdesc = A high-performance, general-purpose structured text indexing and retrieval engine. + pkgver = 2.1.2 + pkgrel = 1 + url = http://www.indexdata.com/zebra/ + arch = i686 + arch = x86_64 + license = GPL + depends = bzip2 + depends = expat + depends = perl + depends = yaz>=3.0.47 + depends = zlib + source = http://ftp.indexdata.dk/pub/zebra/idzebra-2.1.2.tar.gz + sha512sums = 13896c6f9666a28c55863de29eb7e12bb5f19ad0bd5da0968ae3832afc44d375ccff36fe5a14843d2a73af6c28fa5fa515075682ff4da1b42ad8e0ea6b87e16b + +pkgname = zebra + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5b9f229b0909 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: int <int [ate] arcor [dot] de> +# +# NOTE: idzebra-config-2.0 contains the path of $srcdir, where the package is build. +# So makepkg warns: "WARNING: Package contains reference to $srcdir" during package-build, +# see https://wiki.archlinux.org/index.php/makepkg#WARNING:_Package_contains_reference_to_.24srcdir. +# But this values are only used in a dead if-branch in idzebra-config-2.0, +# so just ignore the warning. +# (The values are only used if $echo_source in idzebra-config-2.0 is set to "yes". +# But this variable is set to "no" in the script, so this if-branch is dead.) +# +# Two possibilities: ignore the warning or patch this dead if-branch out of the script. +# I decided to ignore it for now. +# +pkgname=zebra +_dlname=idzebra +pkgver=2.1.2 +pkgrel=1 +pkgdesc="A high-performance, general-purpose structured text indexing and retrieval engine." +arch=('i686' 'x86_64') +url="http://www.indexdata.com/zebra/" +license=('GPL') +depends=('bzip2' 'expat' 'perl' 'yaz>=3.0.47' 'zlib') +source=("http://ftp.indexdata.dk/pub/zebra/${_dlname}-${pkgver}.tar.gz") +sha512sums=('13896c6f9666a28c55863de29eb7e12bb5f19ad0bd5da0968ae3832afc44d375ccff36fe5a14843d2a73af6c28fa5fa515075682ff4da1b42ad8e0ea6b87e16b') + +prepare() { + cd "$_dlname-$pkgver" +} + +build() { + cd "$_dlname-$pkgver" + + # --with-yaz wants the path to yaz-config + ./configure --prefix=/usr \ + --with-yaz=/usr/bin \ + --without-docbook-dtd --without-docbook-dsssl --without-docbook-xsl \ + --without-htmlhelp.xsl \ + --without-tclconfig \ + --with-iconv --with-expat + make +} + +check() { + cd "$_dlname-$pkgver" + make -k check +} + +package() { + cd "$_dlname-$pkgver" + make DESTDIR="$pkgdir/" install + + # libtool warning in the last "make install" step + # says to do the following: + libtool --finish "$pkgdir/usr/lib" +} |