void-packages/srcpkgs/sxiv-git/template
2013-11-04 14:45:56 +01:00

34 lines
775 B
Text

# Template file for 'sxiv-git'
pkgname=sxiv-git
version=20131104
revision=1
makedepends="libX11-devel imlib2-devel giflib-devel"
short_desc="Simple X Image Viewer"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="GPL-2"
homepage="https://github.com/muennich/sxiv"
do_fetch() {
local url="git://github.com/muennich/sxiv"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
do_build() {
cp ${FILESDIR}/config.h config.h
sed -i 's/^CFLAGS =/CFLAGS +=/' Makefile
sed -i 's/^LDFLAGS =/LDFLAGS +=/' Makefile
make CC=$CC ${makejobs}
}
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall LICENSE 644 usr/share/licenses/$pkgname
}
sxiv-git_package() {
depends="desktop-file-utils"
pkg_install() {
vmove usr
}
}