sxhkd-git: simplify by using the gnu-makefile build_style

This commit is contained in:
Ypnose 2013-12-30 18:39:14 +01:00
parent 45af6ccdf4
commit e14482b922

View file

@ -1,32 +1,30 @@
# Template file for 'sxhkd-git' # Template file for 'sxhkd-git'
pkgname=sxhkd-git pkgname=sxhkd-git
version=20131221 version=20131230
revision=1 revision=1
build_style=gnu-makefile
makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel" makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel"
short_desc="Simple X HotKey Daemon" short_desc="Simple X HotKey Daemon"
maintainer="Ypnose <linuxienATlegtuxDOTorg>" maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="BSD" license="BSD"
homepage="https://github.com/baskerville/sxhkd" homepage="https://github.com/baskerville/sxhkd"
do_fetch() { do_fetch() {
local url="git://github.com/baskerville/sxhkd" local url="git://github.com/baskerville/sxhkd"
msg_normal "Fetching source from $url ...\n" msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version} git clone ${url} ${pkgname}-${version}
} }
do_build() { pre_build() {
sed -i 's/LIBS =/LIBS +=/g' Makefile sed -i 's/LIBS =/LIBS +=/g' Makefile
make CC=$CC INCS="-I." ${makejobs}
} }
do_install() { post_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall LICENSE 644 usr/share/licenses/$pkgname vinstall LICENSE 644 usr/share/licenses/$pkgname
} }
sxhkd-git_package() { sxhkd-git_package() {
pkg_install() { pkg_install() {
vmove usr vmove all
} }
} }