lemonbar-xft: avoid conflict with lemonbar, fix cross build

Closes: #9824 [via git-merge-pr]
This commit is contained in:
cr6git 2017-12-07 17:58:05 +01:00 committed by Jürgen Buchmüller
parent 81adf361e5
commit 6c090f34ac
1 changed files with 8 additions and 4 deletions

View File

@ -1,13 +1,14 @@
# Template file for 'lemonbar-xft'
pkgname=lemonbar-xft
version=1.0.20161107
revision=1
revision=2
conflicts="lemonbar"
_commit=043ad4757cc079666f50212ee0a2ef0729ecac6b
build_style=gnu-makefile
wrksrc="bar-${_commit}"
hostmakedepends="perl libXft-devel libxcb-devel"
makedepends="libxcb-devel libXft-devel"
short_desc="A lightweight xcb based bar with xft support"
hostmakedepends="perl"
makedepends="libXft-devel"
short_desc="Lightweight xcb based bar with xft support"
maintainer='ivierlin <github@ivierlin.de>'
homepage="https://github.com/krypt-n/bar"
license="MIT"
@ -18,6 +19,9 @@ pre_build() {
sed -i "s/^\(VERSION =\).*/\1 ${version}/" Makefile
sed -i 's/^\(CFLAGS *+=\)/override \1/' Makefile
sed -i 's/^\(LDFLAGS *+=\)/override \1/' Makefile
# found this trick on the 'spectrwm' template
sed -i "s,-I/usr/include/freetype2,-I${XBPS_CROSS_BASE}/usr/include/freetype2,g" Makefile
}
post_install() {
vlicense LICENSE