aports/testing/poco/APKBUILD
2019-05-31 06:40:23 +00:00

41 lines
1.2 KiB
Plaintext

# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=poco
pkgver=1.9.0
pkgrel=0
pkgdesc="C++ class libraries for building network- and internet-based applications"
options="!check" # No testsuite
url="https://pocoproject.org/"
arch="all"
license="BSL-1.0"
makedepends="openssl-dev linux-headers"
subpackages="$pkgname-dev"
source="https://pocoproject.org/releases/$pkgname-$pkgver/$pkgname-$pkgver-all.tar.gz
cxxflags.patch
"
builddir="$srcdir"/$pkgname-$pkgver-all
build() {
./configure --config=Linux \
--prefix=/usr \
--minimal \
--shared \
--no-tests \
--no-samples
make
}
package() {
make DESTDIR="$pkgdir" install
_basedir="$pkgdir"/usr/include/Poco
for dir in Net Crypto; do
test -d "$_basedir"/$dir || mkdir "$_basedir"/$dir
done
cp NetSSL_OpenSSL/include/Poco/Net/*.h "$_basedir"/Net
cp Crypto/include/Poco/Crypto/*.h "$_basedir"/Crypto
}
sha512sums="ab29a18e254af1232b500143daae219bee71c4a0047e68eca52c20a915e3651ab02dc143facd0ed85c9fadc8ea4a973c76765c69da4306c3c902a9121700b762 poco-1.9.0-all.tar.gz
5f72e487074ea26e29e81d6fc244d03989d780d71b33a064456fa19b241aca278fbfd9b303733940b837921ea25781ee62905d70a5f1c57f1b24cd38a2a7d720 cxxflags.patch"