sxiv-git: simplify by using the gnu-makefile build_style
This commit is contained in:
parent
e14482b922
commit
6e22e9c7d7
|
@ -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 <linuxienATlegtuxDOTorg>"
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue