aboutsummaryrefslogblamecommitdiffstats
path: root/testing/slop/APKBUILD
blob: 190c640451d043a6d810565c44d3464956f39f70 (plain) (tree)
1
2
3
4
5

                                                         


            

















                                                                                                
                                         
                                               
                                  






                                      
                                                                                                                                                              
# Contributor: Samuel Hunter <samuelhunter1024@gmail.com>
# Maintainer: Samuel Hunter <samuelhunter1024@gmail.com>
pkgname=slop
pkgver=7.5
pkgrel=0
pkgdesc="Application that queries for a selection from the user and prints the region to stdout"
url="https://github.com/naelstrof/slop"
arch="all"
license="MIT"
makedepends="cmake icu-dev mesa-dev glew-dev glu-dev libice-dev libsm-dev
	libx11-dev libxext-dev libxrender-dev glm-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/naelstrof/slop/archive/v$pkgver.tar.gz"
options="!check" # No tests

build() {
	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=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		$CMAKE_CROSSOPTS .
	make
}

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

sha512sums="c02e40c5b924841996617fcc9629a6a739a04b6128c18e1eb06dc285d2f8026d847e67077fb59a111fc45c112f871a6e5faef20108c3d777271e1d4aca7f4737  slop-7.5.tar.gz"