diff options
author | Pellegrino Prevete | 2023-06-20 16:57:39 +0200 |
---|---|---|
committer | Pellegrino Prevete | 2023-06-20 17:01:23 +0200 |
commit | 8673f95d2cd4837120f7f7c2cafd51af638c10ad (patch) | |
tree | a4b446ef8f9d47258aec8c8d758ecc7ba2353b93 | |
download | aur-8673f95d2cd4837120f7f7c2cafd51af638c10ad.tar.gz |
initial commit
fix typo
-rw-r--r-- | .SRCINFO | 59 | ||||
-rwxr-xr-x | PKGBUILD | 221 |
2 files changed, 280 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c1c96e7e3f86 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,59 @@ +pkgbase = generic-monitor-plugin + pkgdesc = Cyclically spawns a script/program, captures its output and displays the resulting string in the panel + pkgver = 2021.10.27 + pkgrel = 3 + url = https://gitlab.com/vala-panel-project/xfce4-genmon-plugin + arch = x86_64 + arch = i686 + arch = aarch64 + arch = armv7h + arch = pentium4 + license = LGPL + makedepends = cmake + makedepends = vala + makedepends = gtk3 + makedepends = libpeas + makedepends = mate-panel + makedepends = xfce4-panel>=4.11.2 + makedepends = vala-panel>=0.4.60 + makedepends = budgie-desktop + source = https://gitlab.com/vala-panel-project/xfce4-genmon-plugin/-/archive/d8f2540730747f955f45ba1fbd32e2aaa3277ad2/xfce4-genmon-plugin-d8f2540730747f955f45ba1fbd32e2aaa3277ad2.tar.gz + source = git+https://gitlab.com/vala-panel-project/cmake-vala + sha256sums = hi + sha256sums = hi + +pkgname = genmon-plugin-common + pkgdesc = Translations and script examples for GenMon + arch = any + depends = bash + depends = perl + optdepends = xfce4-panel-genmon: XFCE4 panel applet + optdepends = mate-panel-genmon: MATE panel applet + optdepends = vala-panel-genmon: Vala panel applet + optdepends = budgie-genmon: Budgie panel applet + +pkgname = mate-panel-genmon + pkgdesc = Cyclically spawns a script/program, captures its output and displays the resulting string in the panel + depends = gtk3 + depends = mate-panel + depends = genmon-plugin-common + +pkgname = xfce4-panel-genmon-ng + pkgdesc = Cyclically spawns a script/program, captures its output and displays the resulting string in the panel + depends = gtk3 + depends = xfce4-panel>=4.11.2 + depends = genmon-plugin-common + +pkgname = vala-panel-genmon + pkgdesc = Cyclically spawns a script/program, captures its output and displays the resulting string in the panel + depends = gtk3 + depends = vala-panel>=0.4.60 + depends = genmon-plugin-common + provides = vala-panel-applets-genmon + +pkgname = budgie-genmon + pkgdesc = Cyclically spawns a script/program, captures its output and displays the resulting string in the panel + depends = budgie-desktop + depends = gtk3 + depends = libpeas + depends = genmon-plugin-common diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..e7bb712ed8db --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,221 @@ +# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com> +# Contributor: rilian-la-te <ria.freelander@gmail.com> + +_disable_mate=0 +_disable_xfce=0 +_disable_vala=0 +_disable_budgie=0 + +_base="vala" +_pkg="genmon" +_pkgname="${_pkg}-plugin" +_name="generic-monitor" +pkgname=( + "${_pkgname}-common" +) +depends=() +_opts=( + -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_LIBDIR=lib + -DCMAKE_INSTALL_LIBEXECDIR=lib +) + +makedepends=( + 'cmake' + "${_base}" + 'gtk3' + 'libpeas') + +if (("${_disable_mate}" == 0));then + _opts+=(-DENABLE_MATE=ON) + pkgname+=("mate-panel-${_pkg}") + makedepends+=("mate-panel") +# msg "Mate applet enabled" +else + _opts+=(-DENABLE_MATE=OFF) +fi + +if (("${_disable_xfce}" == 0)); then + _opts+=(-DENABLE_XFCE=ON) + pkgname+=("xfce4-panel-${_pkg}-ng") + makedepends+=('xfce4-panel>=4.11.2') +# msg "Xfce applet enabled" +else + _opts+=(-DENABLE_XFCE=OFF) +fi + +if (("${_disable_vala}" == 0)); then + _opts+=(-DENABLE_VALAPANEL=ON) + pkgname+=("${_base}-panel-${_pkg}") + makedepends+=("${_base}-panel>=0.4.60") +# msg "Vala Panel applet enabled" +else + _opts+=(-DENABLE_VALAPANEL=OFF) +fi + +if (("${_disable_budgie}" == 0)); then + _opts+=(-DENABLE_BUDGIE=ON) + pkgname+=("budgie-${_pkg}") + makedepends+=('budgie-desktop') +# msg "Budgie applet enabled" +else + _opts+=(-DENABLE_BUDGIE=OFF) +fi + + +#msg "If you want to disable an applet, edit pkgbuild variables _disable_[applet]" + +pkgbase="${_name}-plugin" +_project="xfce4-${_pkgname}" +_ns="${_base}-panel-project" +_repo="https://gitlab.com/${_ns}" +_cmakename="cmake-${_base}" +_dbusmenuname="${_base}-dbusmenu" +pkgver=2021.10.27 +pkgrel=3 +_pkgdesc=("Cyclically spawns a script/program, captures its output " + "and displays the resulting string in the panel") +pkgdesc="${_pkgdesc[*]}" +url="${_repo}/${_project}" +arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'pentium4') +license=('LGPL') +_commit="d8f2540730747f955f45ba1fbd32e2aaa3277ad2" +_cmake_commit="d041cd5bd5527926ca1217c751b9e7878eed1283" +source=("${url}/-/archive/${_commit}/${_project}-${_commit}.tar.gz" + "git+${_repo}/${_cmakename}") +sha256sums=('hi' + 'hi') + +prepare() { + cd "${srcdir}/${_cmakename}" + cp -r . "${srcdir}/${_project}/cmake" +} + +build(){ + cd "${srcdir}/${_project}" + cmake ./ "${_opts[@]}" + make +} + +package_xfce4-panel-genmon-ng(){ + _base="vala" + _pkg="genmon" + _pkgname="${_pkg}-plugin" + _project="xfce4-${_pkgname}" + _pkgdesc=("Cyclically spawns a script/program, captures its output " + "and displays the resulting string in the panel") + pkgdesc="${_pkgdesc[*]}" + depends=('gtk3' + 'xfce4-panel>=4.11.2' + "${_pkgname}-common") + cd "${srcdir}/${_project}" + make -C "src" DESTDIR="${pkgdir}" install + make -C "data" DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/lib/genmon-scripts" + rm -rf "${pkgdir}/usr/lib/${_base}-panel" + rm -rf "${pkgdir}/usr/share/mate-panel" + rm -rf "${pkgdir}/usr/share/${_base}-panel" + rm -rf "${pkgdir}/usr/lib/mate-panel" + rm -rf "${pkgdir}/usr/lib/budgie-desktop" + rm -rf "${pkgdir}/usr/share/glib-2.0" + rm -rf "${pkgdir}/usr/share/dbus-1" +} + +package_mate-panel-genmon(){ + _base="vala" + _pkg="genmon" + _pkgname="${_pkg}-plugin" + _project="xfce4-${_pkgname}" + _pkgdesc=("Cyclically spawns a script/program, captures its output " + "and displays the resulting string in the panel") + pkgdesc="${_pkgdesc[*]}" + depends=('gtk3' + 'mate-panel' + "${_pkgname}-common") + cd "${srcdir}/${_project}" + make -C "src" DESTDIR="${pkgdir}" install + make -C "data" DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/lib/${_pkg}-scripts" + rm -rf "${pkgdir}/usr/lib/${_base}-panel" + rm -rf "${pkgdir}/usr/lib/xfce4" + rm -rf "${pkgdir}/usr/share/xfce4" + rm -rf "${pkgdir}/usr/share/${_base}-panel" + rm -rf "${pkgdir}/usr/lib/budgie-desktop" + rm -rf "${pkgdir}/usr/share/glib-2.0" +} + +package_vala-panel-genmon(){ + _base="vala" + _pkg="genmon" + _pkgname="${_pkg}-plugin" + _project="xfce4-${_pkgname}" + _pkgdesc=("Cyclically spawns a script/program, captures its output " + "and displays the resulting string in the panel") + pkgdesc="${_pkgdesc[*]}" + depends=('gtk3' + "${_base}-panel>=0.4.60" + "${_pkgname}-common") + provides=("${_base}-panel-applets-${_pkg}") + cd "${srcdir}/${_project}" + make -C "src" DESTDIR="${pkgdir}" install + make -C "data" DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/lib/${_pkg}-scripts" + rm -rf "${pkgdir}/usr/lib/xfce4" + rm -rf "${pkgdir}/usr/share/xfce4" + rm -rf "${pkgdir}/usr/share/mate-panel" + rm -rf "${pkgdir}/usr/lib/mate-panel" + rm -rf "${pkgdir}/usr/lib/budgie-desktop" + rm -rf "${pkgdir}/usr/share/glib-2.0" + rm -rf "${pkgdir}/usr/share/dbus-1" +} + +package_budgie-genmon(){ + _base="vala" + _pkg="genmon" + _pkgname="${_pkg}-plugin" + _project="xfce4-${_pkgname}" + _pkgdesc=("Cyclically spawns a script/program, captures its output " + "and displays the resulting string in the panel") + pkgdesc="${_pkgdesc[*]}" + depends=('budgie-desktop' + 'gtk3' + 'libpeas' + "${_pkgname}-common") + cd "${srcdir}/${_project}" + make -C "src" DESTDIR="${pkgdir}" install + make -C "data" DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/lib/${_pkg}-scripts" + rm -rf "${pkgdir}/usr/lib/xfce4" + rm -rf "${pkgdir}/usr/share/xfce4" + rm -rf "${pkgdir}/usr/share/mate-panel" + rm -rf "${pkgdir}/usr/share/${_base}-panel" + rm -rf "${pkgdir}/usr/lib/mate-panel" + rm -rf "${pkgdir}/usr/lib/${_base}-panel" + rm -rf "${pkgdir}/usr/share/glib-2.0" + rm -rf "${pkgdir}/usr/share/dbus-1" +} + +package_genmon-plugin-common(){ + _base="vala" + _pkg="genmon" + _pkgname="${_pkg}-plugin" + _project="xfce4-${_pkgname}" + pkgdesc="Translations and script examples for GenMon" + depends=('bash' 'perl') + optdepends=("xfce4-panel-${_pkg}: XFCE4 panel applet" + "mate-panel-${_pkg}: MATE panel applet" + "${_base}-panel-${_pkg}: Vala panel applet" + "budgie-${_pkg}: Budgie panel applet") + arch=('any') + cd "${srcdir}/${_project}" + make -C "po" DESTDIR="${pkgdir}" install + make -C "data" DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/share/xfce4" + rm -rf "${pkgdir}/usr/share/mate-panel" + rm -rf "${pkgdir}/usr/share/${_base}-panel" + rm -rf "${pkgdir}/usr/share/dbus-1" + rm -rf "${pkgdir}/usr/lib/mate-panel" + rm -rf "${pkgdir}/usr/lib/${_base}-panel" + rm -rf "${pkgdir}/usr/lib/budgie-desktop" + rm -rf "${pkgdir}/usr/lib/xfce4" +} |