void-packages/srcpkgs/sxiv-git/template

35 lines
775 B
Text
Raw Normal View History

2013-08-29 10:25:24 +00:00
# Template file for 'sxiv-git'
pkgname=sxiv-git
2013-09-27 16:48:19 +00:00
version=20130927
2013-08-29 10:25:24 +00:00
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
}
}