updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / poco / PKGBUILD
blob97049372a0df032c91fb2faa485ed5a7f4e0a873
1 # Maintainer: Rodrigo Grumiche Silva <grumiche at integrityit dot com dot br>
2 # Contributor: nozog
3 # Contributor: davidhjelm
4 # Contributor: Ray Kohler <ataraxia937 at gmail dot com>
5 # Contributor: Nathan Owe < ndowens04 at gmail dot com>
8 pkgname=poco
9 pkgver=1.4.2p1
10 pkgrel=1
11 pkgdesc="C++ class libraries for network-centric, portable applications,
12 complete edition"
13 arch=('i686' 'x86_64')
14 url="http://www.pocoproject.org/"
15 license=('custom:boost')
16 depends=('unixodbc' 'libmysqlclient' 'openssl')
17 makedepends=('gcc' 'make' 'unixodbc' 'libmysqlclient' 'openssl' 'chrpath')
18 options=()
19 source=(http://downloads.sourceforge.net/poco/$pkgname-$pkgver-all.tar.bz2)
20 #sha512sums=('d3687c7b79f9de25ad3e6415d7fdb561a0bc947097d29bc6d0c84f8267ab2db6f0c0d38648a0608d0e14dc5cf1e5ae58497a8f0ea1acc77b74207c0c7335dfd2')
21 md5sums=('752e5f5545377be24ee7c7b6b479fbbe')
24 build() {
25  cd $srcdir/$pkgname-$pkgver-all
26  ./configure --prefix=/usr --no-samples --no-tests
27  make || return 1
31 package()
33  cd $srcdir/$pkgname-$pkgver-all
34  make DESTDIR=$pkgdir install
35  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
36  #removing rpath information from binaries
37  chrpath -d $pkgdir/usr/bin/cpspc || return 1
38  chrpath -d $pkgdir/usr/bin/cpspcd || return 1
39  chrpath -d $pkgdir/usr/bin/f2cpspd || return 1
40  chrpath -d $pkgdir/usr/bin/f2cpsp || return 1
41  #removing debugging libraries
42  rm $pkgdir/usr/lib/libPoco*d.so* || return 1