mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
testing/popl: new aport
This commit is contained in:
parent
e921371f31
commit
e676d445d4
38
testing/popl/APKBUILD
Normal file
38
testing/popl/APKBUILD
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
||||||
|
# Maintainer:
|
||||||
|
pkgname=popl
|
||||||
|
pkgver=1.0.0
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Header-only C++ program options parser library"
|
||||||
|
url="https://github.com/badaix/popl"
|
||||||
|
arch="noarch"
|
||||||
|
license="MIT"
|
||||||
|
depends=""
|
||||||
|
depends_dev=""
|
||||||
|
makedepends="cmake"
|
||||||
|
install=""
|
||||||
|
options="!check" # no tests
|
||||||
|
subpackages=""
|
||||||
|
source="popl-$pkgver.tar.gz::https://github.com/badaix/popl/archive/v$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/popl-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$builddir"
|
||||||
|
if [ "$CBUILD" != "$CHOST" ]; then
|
||||||
|
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
||||||
|
fi
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
|
||||||
|
-DCMAKE_C_FLAGS="$CFLAGS" \
|
||||||
|
${CMAKE_CROSSOPTS}
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$builddir"
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="b48bba41674c7821059eb97833f6521f123ed9adf9a62ac8f4fa98807910bbc899513a5fc2260f763d15bbf9d280547b9ed6d8aa667db48628dae9344f805721 popl-1.0.0.tar.gz"
|
Loading…
Reference in New Issue
Block a user