void-packages/srcpkgs/geeqie/template
Đoàn Trần Công Danh 9549944eb9 geeqie: fix l10n dir
2021-01-30 16:38:41 +07:00

37 lines
1.1 KiB
Bash

# Template file for 'geeqie'
pkgname=geeqie
version=1.5.1
revision=2
build_style=gnu-configure
configure_args="--enable-gtk3"
hostmakedepends="automake pkg-config intltool glib-devel gtk+3-devel"
makedepends="gtk+3-devel exiv2-devel lcms2-devel librsvg-devel lua51-devel
ffmpegthumbnailer-devel"
depends="desktop-file-utils"
short_desc="Lightweight GTK+ based image viewer"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.geeqie.org/"
distfiles="http://www.geeqie.org/geeqie-${version}.tar.xz"
checksum=4854d5d323c31f8f4068fd73ab2c454ff91e826c4ca4d37b22c246ad14dea10a
patch_args="-Np1"
CFLAGS="-Wno-error -fcommon"
post_extract() {
# Missing from release tarball, and requires git tree to generate
sed -e "/readme_DATA/s/ChangeLog\(.html\)\?//g" -i Makefile.am
}
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
# The shipped configure doesn't have the code path
# for generating gtk+3 cflags and ldflags
vsed -i -e '/DATADIRNAME=/s/=.*/=share/' \
-e '/CATOBJEXT=/s/\.mo/.gmo/' \
configure
}
do_build() {
make ${makejobs} CFLAGS="${CFLAGS}"
}