# Contributor: Leo # Maintainer: pkgname=libcork pkgver=0.15.0 pkgrel=1 pkgdesc="Simple, easily embeddable cross-platform C library" url="https://github.com/redjack/libcork" arch="all" license="BSD-3-Clause" makedepends="cmake check-dev" checkdepends="python3" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/dcreager/libcork/archive/$pkgver.tar.gz fix-dumb-script.patch " prepare() { default_prepare mkdir build echo "$pkgver" > RELEASE-VERSION } build() { cd build cmake .. \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DENABLE_STATIC=OFF \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd build ctest -E '(shared-test-core|shared-test-file|run-paths-01)' } package() { cd build make DESTDIR="$pkgdir" install } sha512sums="8f41cce2101b96707068a21e5bd0a43c23f996c3620e7dd36621ed4bdd3f92851a92ea56ed92db40d7d8fe55ddfbdfcdaac4d2c8b2fc6cb3b1abe3b0e74c6a75 libcork-0.15.0.tar.gz c80c3edb45e4051b5b3aac4b4980296e54d78bee0410e833278034a9dcdd971f174be01f8420bb94e294bc229e69d13b200679c600ee56920348af94ccd51b45 fix-dumb-script.patch"