aports/testing/libzrtpcpp/APKBUILD
2025-01-04 21:54:01 +00:00

44 lines
1.6 KiB
Text

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=libzrtpcpp
pkgver=4.7.0
pkgrel=0
pkgdesc="C++ Implementation of ZRTP protocol"
url="https://github.com/wernerd/ZRTPCPP"
arch="all"
license="Apache-2.0"
makedepends="cmake samurai ccrtp-dev"
subpackages="$pkgname-dev"
source="https://github.com/wernerd/ZRTPCPP/archive/$pkgver/libzrtpcpp-$pkgver.tar.gz
stdbool.patch
demo-pointer.patch
unsigned-int.patch
lib-suffix.patch
"
builddir="$srcdir/ZRTPCPP-$pkgver"
options="!check" # no tests
build() {
if [ "$CBUILD" != "$CHOST" ]; then
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=MinSizeRel \
$crossopts
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
7ea7458edf06944c5248973ece871af7a44319935fb7e761ffee256c83ca6feeb887c108ed7193563a7cd2be29b79657e659c69c46bc3a27b94b4eb4c664fac4 libzrtpcpp-4.7.0.tar.gz
ca0fb9625be5bd81f0ffab80675a1ce0258ef32f75878a6c9c64da367d12ced3cdde1886fab0efcf04814ad9532fc957ebf5441a5b7b1c75a6c5fb638e5b312e stdbool.patch
bcf7fe4844d080f0d526adfd006f17c2da03af3e20ee3626137a9be8a513757ef11fdbd92171074199f23f179f3ead31b5a4f6a02a9ac92d104967ab145cc0d0 demo-pointer.patch
d75e4de04585ab71ef569d99bf0ffe5d7ba80a3f096389df90c480f828ea74ccffc83d73a7673080a90f690d81c826630e486507984aeb650c643a8a1eab7e0e unsigned-int.patch
67bd203e00284bf904fa38cfd28a19834fe8f84006fe5895eb14092b65620c844980fa2d469a9dc95a087b9c66f2e66826d5e5aa149be49e5866540ebb0597a1 lib-suffix.patch
"