ii: simplify by using the gnu-makefile build_style

This commit is contained in:
Ypnose 2013-12-30 19:03:45 +01:00
parent 6e22e9c7d7
commit 94dc337a48

View file

@ -1,7 +1,9 @@
# Template file for 'ii' # Template file for 'ii'
pkgname=ii pkgname=ii
version=1.7 version=1.7
revision=1 revision=2
build_style=gnu-makefile
make_build_args="INCLUDES=-I. LIBS="
short_desc="Minimalist FIFO IRC client" short_desc="Minimalist FIFO IRC client"
maintainer="Ypnose <linuxienATlegtuxDOTorg>" maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT" license="MIT"
@ -9,18 +11,12 @@ homepage="http://tools.suckless.org/ii"
distfiles="http://dl.suckless.org/tools/$pkgname-$version.tar.gz" distfiles="http://dl.suckless.org/tools/$pkgname-$version.tar.gz"
checksum=3a72ac6606d5560b625c062c71f135820e2214fed098e6d624fc40632dc7cc9c checksum=3a72ac6606d5560b625c062c71f135820e2214fed098e6d624fc40632dc7cc9c
do_build() { post_install() {
sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk
make CC=$CC
}
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall LICENSE 644 usr/share/licenses/$pkgname vinstall LICENSE 644 usr/share/licenses/$pkgname
} }
ii_package() { ii_package() {
pkg_install() { pkg_install() {
vmove usr vmove all
} }
} }