aboutsummaryrefslogtreecommitdiffstats
path: root/community/imv/APKBUILD
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-08-20 15:25:09 +0900
committerLeo <thinkabit.ukim@gmail.com>2019-08-20 13:01:06 -0300
commit0fbeb40cfa7f8629766b2f1317a4f21b69534ba2 (patch)
tree6e8dd62c5a2e0576c0a259f1b93ae7c8b9025b11 /community/imv/APKBUILD
parent4e9eae6dc95ef10786fd6f4207a87b4f658eed28 (diff)
downloadaports-0fbeb40cfa7f8629766b2f1317a4f21b69534ba2.tar.bz2
aports-0fbeb40cfa7f8629766b2f1317a4f21b69534ba2.tar.xz
community/imv: move from testing
Diffstat (limited to 'community/imv/APKBUILD')
-rw-r--r--community/imv/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/imv/APKBUILD b/community/imv/APKBUILD
new file mode 100644
index 0000000000..1513be33bd
--- /dev/null
+++ b/community/imv/APKBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=imv
+pkgver=3.0.0
+pkgrel=2
+pkgdesc="Image viewer for X11/Wayland"
+url="https://github.com/eXeC64/imv"
+arch="all"
+license="MIT"
+makedepends="
+ asciidoc
+ fontconfig-dev
+ freeimage-dev
+ sdl2_ttf-dev
+ "
+checkdepends="
+ cmocka
+ cmocka-dev
+ "
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/eXeC64/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ rm test/loader.c # broken with abuild
+}
+
+build() {
+ cd "$builddir"
+ case "$CARCH" in
+ ppc64le) export CFLAGS="$CFLAGS -U__ALTIVEC__";;
+ esac
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ DESTDIR="$pkgdir" make install
+}
+
+sha512sums="3db5209498b9cfee8ea3765ff20cb28cea64524b11ffa202f47389b45c8c48f1c2dc461a10b67c71e2a482ed2b810da782174c072790b775a0f80e0dbe52ca0f imv-3.0.0.tar.gz"