blob: c9b0dbf4b272e3265ae64de131594564ea377de8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Raimar Bühmann <raimar _at_ buehmann _dot_ de>
# This PKGBUILD is based on poco to provide also the basic version of
# https://aur.archlinux.org/packages/poco/
pkgname=libpoco-basic
pkgver=1.13.3
_subrel=
pkgrel=1
pkgdesc="C++ class libraries for network-centric, portable applications, basic edition"
arch=('i686' 'x86_64')
url="http://www.pocoproject.org"
license=('custom:boost')
depends=('pcre' 'expat')
conflicts=('poco' 'poco-devel' 'poco-git')
makedepends=('gcc' 'make')
source=(
${url}/releases/poco-${pkgver}/poco-${pkgver}${_subrel}.tar.gz
# RegularExpression.h.patch
)
sha256sums=('5bb8781e26245f337afd526fe443eebdc1b1647bee8a607de9a363884dd7b322')
prepare() {
# apply patch for static build
cd poco-${pkgver}${_subrel}
# patch Foundation/include/Poco/RegularExpression.h < ../RegularExpression.h.patch
}
build() {
cd poco-${pkgver}${_subrel}
./configure --prefix=/usr --no-samples --no-tests --unbundled --static --shared
make
}
package() {
cd poco-${pkgver}${_subrel}
make DESTDIR="${pkgdir}" install
install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# remove debug libraries
rm "${pkgdir}/usr/lib/libPoco"*"d.so"*
rm "${pkgdir}/usr/lib/libPoco"*"d.a"
}
|