void-packages/srcpkgs/ahoviewer/template
2019-12-16 22:57:22 +01:00

40 lines
1.1 KiB
Bash

# Template file for 'ahoviewer'
pkgname=ahoviewer
version=1.6.5
revision=1
build_style=gnu-configure
configure_args="--enable-libsecret --enable-gst --enable-zip"
hostmakedepends="automake pkg-config libcurl-devel"
makedepends="gtkmm2-devel glibmm-devel libconfig++-devel libcurl-devel
libxml2-devel libzip-devel libsecret-devel gstreamer1-devel
gst-plugins-bad1-devel wayland-devel"
depends="gst-plugins-bad1 gst-plugins-good1"
short_desc="GTK2 image viewer, manga reader, and booru browser"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="MIT"
homepage="https://github.com/ahodesuka/ahoviewer"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=a14e32b4a8095c9f8b4b607c090a50cc8ac1076550e57b5a9303c54089068152
nocross="https://travis-ci.org/void-linux/void-packages/jobs/490108528#L1022"
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv6*|ppc*) makedepends+=" libatomic-devel";;
esac
post_patch() {
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv6*|ppc*)
echo "ahoviewer_LDADD += -latomic" >> src/Makefile.am
;;
esac
}
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense LICENSE
}