aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-04-22 02:16:31 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-04-23 16:00:18 +0000
commita74a8181b972621e8a3bf144d72a7cab361a03fc (patch)
tree441f9f4c9ec5d370a6038e082dccd601525addb4
parent91ffc449712605115d3aedbdaa13830f1b47f024 (diff)
downloadaports-a74a8181b972621e8a3bf144d72a7cab361a03fc.tar.gz
aports-a74a8181b972621e8a3bf144d72a7cab361a03fc.tar.bz2
aports-a74a8181b972621e8a3bf144d72a7cab361a03fc.tar.xz
testing/maim: new aport
-rw-r--r--testing/maim/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/maim/APKBUILD b/testing/maim/APKBUILD
new file mode 100644
index 0000000000..6a2293cb20
--- /dev/null
+++ b/testing/maim/APKBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=maim
+pkgver=5.5.2
+pkgrel=0
+pkgdesc="Desktop screenshot utility"
+url="https://github.com/naelstrof/maim"
+options="!check" # Does not provide test suite
+arch="all"
+license="GPL-3.0-or-later"
+makedepends="
+ cmake
+ mesa-dev
+ glm-dev
+ icu-dev
+ libxcomposite-dev
+ libxrandr-dev
+ libjpeg-turbo-dev
+ libpng-dev
+ slop-dev"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/naelstrof/maim/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="a195ae86f798180e9553af77e16bca1e4d0ba88e6cb025a6a76ecca524c5b60369162e9db787d3515a0a4528c8a7b648dc3046ff84f15c55ba692c4f537b455e maim-5.5.2.tar.gz"