-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
27 lines (25 loc) · 859 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Template file for 'lemonbar-xft'
pkgname=lemonbar-xft
version=1.0.20161107
revision=2
conflicts="lemonbar"
_commit=043ad4757cc079666f50212ee0a2ef0729ecac6b
build_style=gnu-makefile
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"
distfiles="${homepage}/archive/${_commit}.tar.gz"
checksum=ec7705009e02094aef3bb22814b5764dae53b9bd719de0b6aa5002ee6e532994
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
}