aboutsummaryrefslogtreecommitdiffstats
path: root/testing/slop/APKBUILD
blob: 115d0f02a6fd2fafa478983be9dc0cb027e38644 (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
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=slop
pkgver=7.4
pkgrel=1
pkgdesc="Utility to query for a selection and print the region to stdout"
url="https://github.com/naelstrof/slop"
options="!check" # Does not provide a test suite
arch="all"
license="GPL-3.0-or-later"
makedepends="
	cmake
	glew-dev
	glm-dev
	icu-dev
	libxrender-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/naelstrof/slop/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$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_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="13d09c2c9f05760ee0a273edb6d40da8a87989d3f071a8c868a0c7e535ba89b9eb934c79d56212cd689687f86e3683cef1b749ef7b37be3805ea8eb05c796e58  slop-7.4.tar.gz"