2017-08-06 13:54:14 +02:00
|
|
|
# Template file for 'cbatticon-gtk3'
|
|
|
|
pkgname=cbatticon-gtk3
|
2017-10-22 00:03:49 +02:00
|
|
|
version=1.6.7
|
2017-08-06 13:54:14 +02:00
|
|
|
revision=1
|
|
|
|
build_style=gnu-makefile
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="gtk+-devel gtk+3-devel libnotify-devel"
|
|
|
|
maintainer="cr6git <quark6@protonmail.com>"
|
|
|
|
short_desc="Lightweight and fast battery icon that sits in your systray - GTK3"
|
|
|
|
homepage="https://github.com/valr/cbatticon"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="https://github.com/valr/cbatticon/archive/${version}.tar.gz"
|
2017-10-22 00:03:49 +02:00
|
|
|
checksum=d0c33320a8e4421ade0f3cfaf3548a6f620ebc275339019cb5ff1ed87c2256e8
|
2017-08-06 13:54:14 +02:00
|
|
|
wrksrc="cbatticon-${version}"
|
|
|
|
provides="cbatticon-${version}_${revision}"
|
|
|
|
replaces="cbatticon-gtk2>=0"
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
# Cannot build GTK2/3 versions in the same folder!
|
|
|
|
cp -a ${wrksrc} ${wrksrc}-gtk2
|
|
|
|
|
|
|
|
# GTK3
|
|
|
|
make_build_args="WITH_NOTIFY=1 WITH_GTK3=1"
|
|
|
|
make ${makejobs} ${make_build_args} ${make_build_target}
|
|
|
|
|
|
|
|
# GTK2
|
|
|
|
cd ${wrksrc}-gtk2
|
|
|
|
make_build_args="WITH_NOTIFY=1 WITH_GTK3=0"
|
|
|
|
make ${makejobs} ${make_build_args} ${make_build_target}
|
|
|
|
}
|
|
|
|
|
|
|
|
cbatticon-gtk2_package() {
|
|
|
|
short_desc="${short_desc/GTK3/GTK2}"
|
|
|
|
provides="cbatticon-${version}_${revision}"
|
|
|
|
replaces="cbatticon-gtk3>=0"
|
|
|
|
pkg_install() {
|
|
|
|
make STRIP=true PREFIX=/usr DESTDIR=${PKGDESTDIR} -C ${wrksrc}-gtk2 install
|
|
|
|
}
|
|
|
|
}
|