diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4dcd66c2c597 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = poco-git + pkgdesc = C++ class libraries for network-centric, portable applications, complete edition + pkgver = 1.7.0.r0.gf28591b + pkgrel = 1 + url = http://www.pocoproject.org/ + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + license = custom:boost + makedepends = git + makedepends = cmake + makedepends = chrpath + depends = libmariadbclient + depends = openssl + depends = unixodbc + depends = expat + depends = sqlite + provides = poco + conflicts = poco + source = git+https://github.com/pocoproject/poco.git#branch=master + sha256sums = SKIP + +pkgname = poco-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..10bcd96ec278 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Andres Manz <manz dot andres at gmail dot com> + +_pkgname=poco +pkgname=${_pkgname}-git +pkgver=1.7.0.r0.gf28591b +pkgrel=1 +pkgdesc="C++ class libraries for network-centric, portable applications, complete edition" +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +url="http://www.pocoproject.org/" +license=('custom:boost') +depends=('libmariadbclient' 'openssl' 'unixodbc' 'expat' 'sqlite') +makedepends=('git' 'cmake' 'chrpath') +source=('git+https://github.com/pocoproject/poco.git#branch=master') +sha256sums=('SKIP') +conflicts=('poco') +provides=('poco') + +pkgver() { + cd "$_pkgname" + git describe --long | sed 's/^poco.//;s/.release//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${_pkgname}" + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DPOCO_UNBUNDLED=ON . + make +} + +package() { + cd "${srcdir}/${_pkgname}" + DESTDIR="${pkgdir}" make install + install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + chrpath -d "${pkgdir}/usr/bin/cpspc" + chrpath -d "${pkgdir}/usr/bin/f2cpsp" +} |