diff --git a/srcpkgs/sxiv-git/template b/srcpkgs/sxiv-git/template index 27596d30269..3658d097a43 100644 --- a/srcpkgs/sxiv-git/template +++ b/srcpkgs/sxiv-git/template @@ -1,7 +1,8 @@ # Template file for 'sxiv-git' pkgname=sxiv-git -version=20131221 +version=20131230 revision=1 +build_style=gnu-makefile makedepends="libX11-devel imlib2-devel giflib-devel" short_desc="Simple X Image Viewer" maintainer="Ypnose " @@ -14,21 +15,17 @@ do_fetch() { git clone ${url} ${pkgname}-${version} } -do_build() { +pre_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 +post_install() { vinstall LICENSE 644 usr/share/licenses/$pkgname } sxiv-git_package() { depends="desktop-file-utils" pkg_install() { - vmove usr + vmove all } }