2013-08-29 12:25:24 +02:00
|
|
|
# Template file for 'sxiv-git'
|
|
|
|
pkgname=sxiv-git
|
2013-11-04 14:45:56 +01:00
|
|
|
version=20131104
|
2013-08-29 12:25:24 +02: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
|
|
|
|
}
|
|
|
|
}
|