bar-git: simplify by using the gnu-makefile build_style.

This commit is contained in:
Juan RP 2013-12-30 15:38:44 +01:00
parent ed37c957a8
commit 03e1569c83

View file

@ -2,26 +2,24 @@
pkgname=bar-git pkgname=bar-git
version=20131221 version=20131221
revision=1 revision=1
build_style=gnu-makefile
makedepends="libxcb-devel" makedepends="libxcb-devel"
short_desc="A lightweight xcb based bar" short_desc="A lightweight xcb based bar"
maintainer="Ypnose <linuxienATlegtuxDOTorg>" maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT" license="MIT"
homepage="https://github.com/LemonBoy/bar" homepage="https://github.com/LemonBoy/bar"
do_fetch() { do_fetch() {
local url="git://github.com/LemonBoy/bar" local url="git://github.com/LemonBoy/bar"
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() {
cp ${FILESDIR}/config.h config.h cp ${FILESDIR}/config.h config.h
make CC=$CC INCS="-I." ${makejobs}
} }
do_install() { post_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall palette.pl 755 usr/bin vinstall palette.pl 755 usr/bin
vinstall LICENSE 644 usr/share/licenses/${pkgname} vinstall LICENSE 644 usr/share/licenses/${pkgname}
vinstall README.md 644 usr/share/doc/${pkgname} vinstall README.md 644 usr/share/doc/${pkgname}
@ -29,6 +27,6 @@ do_install() {
bar-git_package() { bar-git_package() {
pkg_install() { pkg_install() {
vmove usr vmove all
} }
} }