aports/community/slop/APKBUILD
2025-03-27 13:20:04 +01:00

50 lines
1.3 KiB
Text

# Contributor: Samuel Hunter <samuelhunter1024@gmail.com>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=slop
pkgver=7.6
pkgrel=9
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
glew-dev
glm-dev
glu-dev
icu-dev
libice-dev
libsm-dev
libx11-dev
libxext-dev
libxrender-dev
mesa-dev
samurai
"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/naelstrof/slop/archive/v$pkgver.tar.gz
c++17.patch
"
options="!check" # No tests
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
$CMAKE_CROSSOPTS
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
d1abc50cad124cfb11e9b57c38c824efb2ece3dffce8e54e451ce4adc4a7ad441c6171b7df5d1c8dfa66c875a12cf07b206ba3b87229c0e5f2ddf744d7922fc3 slop-7.6.tar.gz
3bf997855e27f9726935d30d3cac6aa54c532691ac8965148bc2659ed429266ebd88de076495843ca2d927160c771ebbc4e791b2783e551e3d7419ee3f96cd74 c++17.patch
"