cbatticon-gtk3: move to cbatticon, remove gtk2 subpkg

This commit is contained in:
classabbyamp 2022-08-23 18:20:04 -04:00 committed by classabbyamp
parent 1b39bad646
commit 9ad33b026f
4 changed files with 33 additions and 41 deletions

View File

@ -1 +1 @@
cbatticon-gtk3
cbatticon

1
srcpkgs/cbatticon-gtk3 Symbolic link
View File

@ -0,0 +1 @@
cbatticon

View File

@ -1,40 +0,0 @@
# Template file for 'cbatticon-gtk3'
pkgname=cbatticon-gtk3
version=1.6.13
revision=1
wrksrc="cbatticon-${version}"
build_style=gnu-makefile
hostmakedepends="gettext pkg-config"
makedepends="gtk+-devel libnotify-devel"
short_desc="Lightweight and fast battery icon that sits in your systray - GTK3"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/valr/cbatticon"
changelog="https://raw.githubusercontent.com/valr/cbatticon/master/Changelog"
distfiles="https://github.com/valr/cbatticon/archive/${version}.tar.gz"
checksum=87c6dae4a20dcfbf4897b110a7c5105fa8cf10de74b19e128b0cfd6212c55098
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
}
}

View File

@ -0,0 +1,31 @@
# Template file for 'cbatticon'
pkgname=cbatticon
version=1.6.13
revision=1
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="gettext pkg-config"
makedepends="gtk+3-devel libnotify-devel"
short_desc="Lightweight and fast battery icon that sits in your systray"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/valr/cbatticon"
changelog="https://raw.githubusercontent.com/valr/cbatticon/master/Changelog"
distfiles="https://github.com/valr/cbatticon/archive/${version}.tar.gz"
checksum=87c6dae4a20dcfbf4897b110a7c5105fa8cf10de74b19e128b0cfd6212c55098
post_install() {
mv ${DESTDIR}/usr/share/doc/cbatticon-${version} ${DESTDIR}/usr/share/doc/cbatticon
}
cbatticon-gtk2_package() {
build_style=meta
short_desc+=" (transitional dummy package)"
depends="${sourcepkg}>=${version}_${revision}"
}
cbatticon-gtk3_package() {
build_style=meta
short_desc+=" (transitional dummy package)"
depends="${sourcepkg}>=${version}_${revision}"
}