26 lines
727 B
Bash
26 lines
727 B
Bash
# Template file for 'sxiv'
|
|
pkgname=sxiv
|
|
version=25
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
makedepends="libX11-devel imlib2-devel giflib-devel libexif-devel libXft-devel"
|
|
short_desc="Simple X Image Viewer"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/muennich/sxiv"
|
|
distfiles="https://github.com/muennich/sxiv/archive/v${version}.tar.gz"
|
|
checksum=16d1aca1a179e1c0875844efe2e51cfa396a4403467c389f7e9221a733ae5e26
|
|
|
|
pre_build() {
|
|
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h ||:
|
|
}
|
|
|
|
post_install() {
|
|
vinstall sxiv.desktop 644 usr/share/applications
|
|
}
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# otherwise ft2build.h is not found
|
|
hostmakedepends+=" freetype-devel"
|
|
fi
|