diff options
author | Chris Severance | 2015-09-18 10:43:13 -0400 |
---|---|---|
committer | Chris Severance | 2015-09-18 10:43:13 -0400 |
commit | d492e8e15f565c91e1f9d66e1ccf468cc81aba07 (patch) | |
tree | 0fc2ed491dcfb16ab74c42e8064e2e69ab7c1f2f | |
download | aur-d492e8e15f565c91e1f9d66e1ccf468cc81aba07.tar.gz |
Initial Import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 64 |
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..db650b2671e2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = librlib + pkgdesc = Advanced reporting engine that generates professional reports in PDF, HTML, CSV, and text formats from a simple XML definition language. + pkgver = 2.0.9 + pkgrel = 1 + url = http://rlib.sicompos.com/ + arch = i686 + arch = x86_64 + license = GPL + depends = gd + depends = libxml2 + depends = libmariadbclient + depends = libjpeg-turbo + optdepends = php: php bindings + provides = rlib + provides = libr + source = rlib-2.0.9.tar.gz::https://github.com/SICOM/rlib/archive/v2.0.9.tar.gz + sha256sums = efa181857c536ef04da0546e2b82f079883ef4bbda043ba368178245e41d4f25 + +pkgname = librlib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..29bdb8c7b9a4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com +# Contributor: Andrew Grigorev <andrew@ei-grad.ru> + +# see src/examples + +set -u +_gitname='SICOM' +_pkgname='rlib' +pkgname="lib${_pkgname}" # libr seems a bit short +pkgver='2.0.9' +pkgrel='1' +pkgdesc='Advanced reporting engine that generates professional reports in PDF, HTML, CSV, and text formats from a simple XML definition language.' +arch=('i686' 'x86_64') +url="http://${_pkgname}.sicompos.com/" +license=('GPL') +depends=('gd' 'libxml2' 'libmariadbclient' 'libjpeg-turbo') +#makedepends=('docbook-utils' 'texlive-bin' 'texlive-core') # --disable-doc +optdepends=( + #'python2: python bindings' + 'php: php bindings' + #'java: java bindings' + #'perl: perl bindings' + #'csharp' +) +provides=("${_pkgname}" 'libr') +_giturl="https://github.com/${_gitname}/${_pkgname}" +_verwatch=("${_giturl}/releases" "${_giturl#*github.com}/archive/v\(.*\)\.tar\.gz" 'l') +#source=("http://downloads.sourceforge.net/project/${_pkgname}/${_pkgname}/${_pkgname}-${pkgver}/${_pkgname}-${pkgver}.tar.gz") # <=1.3.7 +source=("${_pkgname}-${pkgver}.tar.gz::${_giturl}/archive/v${pkgver}.tar.gz") +sha256sums=('efa181857c536ef04da0546e2b82f079883ef4bbda043ba368178245e41d4f25') + +prepare() { + set -u + cd "${_pkgname}-${pkgver}" + if [ -f 'autogen.sh' ]; then + # Postgres wants a config file. Perl won't compile. Python configure claims no but is really yes. db2pdf doesn't work. + # Configure gives us a Python.h error that needs to be fixed. + # Python tests error: ImportError: No module named '_rlib' + ./autogen.sh --prefix='/usr' --enable-utf8 --enable-python --disable-postgres --disable-perl --disable-doc + else + ./configure --prefix='/usr' --enable-utf8 --enable-python --with-pythonver='2.7' + # From http://sisyphus.ru/en/srpm/Branch5/librlib/spec Version: 1.3.7 + #./configure --disable-static --with-pythonver=%__python_version --disable-postgres --disable-php --disable-perl --disable-python + fi + set +u +} + +build() { + set -u + cd "${_pkgname}-${pkgver}" + make -s -j "$(nproc)" + set +u +} + +package() { + set -u + cd "${_pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + # Don't know where they go but I know where they don't go. + rm -rf "${pkgdir}/usr/etc" + set +u +} +set +u |