desktop/poco/PKGBUILD
Adrian Chaves Fernandez c1308de716 poco: 1.4.6p2
2013-10-18 19:59:35 +00:00

49 lines
1.6 KiB
Bash

# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
# Contributor: Robert Knauer <robert@privatdemail.net>
# Contributor: Rodrigo Grumiche Silva <grumiche at integrityit dot com dot br>
# Contributor: nozog
# Contributor: davidhjelm
# Contributor: Ray Kohler <ataraxia937 at gmail dot com>
# Contributor: Nathan Owe < ndowens04 at gmail dot com>
pkgname=poco
pkgver=1.4.6p2
_pkgver=1.4.6
pkgrel=1
pkgdesc="C++ class libraries for network-centric, portable applications, complete edition"
arch=('i686' 'x86_64')
url="http://www.pocoproject.org/"
license=('custom:boost')
depends=('unixodbc' 'libmysqlclient' 'openssl')
makedepends=('gcc' 'make' 'unixodbc' 'libmysqlclient' 'openssl' 'chrpath')
source=(
"${pkgname}-${pkgver}-all.tar.gz"::"http://pocoproject.org/releases/${pkgname}-${_pkgver}/${pkgname}-${pkgver}-all.tar.gz"
)
sha256sums=(
'cf8229310f047e731cc6273a8df55e03b76f0ed7d5b5d251f99a0f80f6c2c763'
)
build()
{
cd "${srcdir}/${pkgname}-${pkgver}-all"
./configure --prefix=/usr --no-samples --no-tests
make ODBCLIBDIR="/usr/lib"
}
package()
{
cd "${srcdir}/${pkgname}-${pkgver}-all"
make ODBCLIBDIR="/usr/lib" DESTDIR="${pkgdir}" install
install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# remove rpath information from binaries
chrpath -d "${pkgdir}/usr/bin/cpspc"
chrpath -d "${pkgdir}/usr/bin/cpspcd"
chrpath -d "${pkgdir}/usr/bin/f2cpspd"
chrpath -d "${pkgdir}/usr/bin/f2cpsp"
# remove debugging libraries
rm "${pkgdir}/usr/lib/libPoco"*"d.so"*
}
sha256sums=('8d22dbea89a26563076d5f55fa201b26b66025f89c21ccb93fa08695f342364d')