aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libcork/APKBUILD
blob: 5df50188dd5fe80d03618f4a76d3c9866fae2d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libcork
pkgver=0.15.0
pkgrel=0
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=Release \
		-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"