aboutsummaryrefslogblamecommitdiffstats
path: root/testing/docopt/APKBUILD
blob: ac1314fae284fd194e19e0c80f78385bae558f63 (plain) (tree)




































                                                                                                                                                                 
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=docopt
pkgver=0.6.3
pkgrel=0
pkgdesc="Command line arguments parser for C++11 and later"
url="https://github.com/docopt/docopt.cpp/"
arch="all"
license="MIT"
options="!check" # No test suite from upstream
makedepends="cmake ninja"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/docopt/docopt.cpp/archive/v$pkgver.tar.gz
	docopt.pc
	"
builddir="$srcdir/$pkgname.cpp-$pkgver"

build() {
	mkdir -p build

	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-GNinja

	ninja -C build
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
	install -Dm644 "$srcdir/docopt.pc" "$pkgdir/usr/lib/pkgconfig/docopt.pc"
	install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/" README.rst
}

sha512sums="01f881684d416d25f27120e7707473ee7337c09d1d3ce73bd1efd7763955c0bfa86c6d14655d989e37659af940b12c9ac0854571a758a71bf4a7f35e70277c40  docopt-0.6.3.tar.gz
0d382418892e0d81c7cbf4eb17124c2fedbf492c727558be91354f1f5754b2ac799885d4fc7f943bf42d4cba68f9619223d626274c3b3e8ed56a86d5ac071246  docopt.pc"