New package: sxiv-git-20130829
This commit is contained in:
parent
facd678590
commit
1821e94b5e
2 changed files with 210 additions and 0 deletions
34
srcpkgs/sxiv-git/template
Normal file
34
srcpkgs/sxiv-git/template
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Template file for 'sxiv-git'
|
||||
pkgname=sxiv-git
|
||||
version=20130829
|
||||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue