blob: bfb56f96da8e63452d90e1354f804555c3c37b05 (
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
|
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=maim
pkgver=5.5.3
pkgrel=1
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="bbcd4f0276090b9650cda88e527d0d1b80270a50935fbc02aac9a302a64bc3975386f24a97d8eb3c1f97d7d32cc9905d5e1f652915fbe3aae0766bd90bc5f51a maim-5.5.3.tar.gz"
|