summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin2017-10-25 01:14:53 +0300
committerKonstantin2017-10-25 01:14:53 +0300
commita4622a5998e7b94989f599015aa5e1f546ddb102 (patch)
treee1caf45635078e25e6c61486ebaccc7f921bba58
downloadaur-a4622a5998e7b94989f599015aa5e1f546ddb102.tar.gz
Added package
-rw-r--r--.SRCINFO90
-rwxr-xr-xPKGBUILD196
-rw-r--r--vala-panel-sntray.install12
3 files changed, 298 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f0224b8d9b6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,90 @@
+# Generated by mksrcinfo v8
+# Tue Oct 24 22:10:00 UTC 2017
+pkgbase = vala-panel-sntray-git
+ pkgdesc = Plugin for xfce4-panel and vala-panel to show StatusNotifierItems (AppIndicators) via FlowBox
+ pkgver = 0.4.8
+ pkgrel = 1
+ url = https://github.com/rilian-la-te/xfce4-sntray-plugin
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = cmake
+ makedepends = vala
+ makedepends = gtk3
+ makedepends = libpeas
+ makedepends = mate-panel
+ makedepends = xfce4-panel>=4.11.2
+ makedepends = vala-panel-git
+ makedepends = budgie-desktop
+ source = git://github.com/rilian-la-te/xfce4-sntray-plugin.git
+ source = git://github.com/rilian-la-te/cmake-vala.git
+ source = git://github.com/rilian-la-te/vala-dbusmenu.git
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = sntray-plugin-translations-git
+ pkgdesc = Translations for StatusNotifier Menu
+ arch = any
+ optdepends = xfce4-panel-sntray-git
+ optdepends = mate-panel-sntray-git
+ optdepends = vala-panel-sntray-git
+ optdepends = budgie-sntray-git
+
+pkgname = mate-panel-sntray-git
+ pkgdesc = Plugin for mate-panel to show StatusNotifierItems (AppIndicators) via FlowBox
+ install = vala-panel-sntray.install
+ depends = gtk3
+ depends = mate-panel
+ depends = sntray-plugin-translations-git
+ optdepends = vala-panel-extras-volume: ALSA volume applet
+ optdepends = vala-panel-extras-battery: UPower battery applet
+ optdepends = vala-panel-extras-weather: Weather applet
+ optdepends = vala-panel-extras-xkb: XKB applet
+ optdepends = sni-qt: Qt applications for StatusNotifier
+ optdepends = libappindicator-gtk2: Gtk2 applications for StatusNotifier
+ optdepends = libappindicator-gtk3: Gtk3 applications for StatusNotifier
+
+pkgname = xfce4-panel-sntray-git
+ pkgdesc = Plugin for xfce4-panel to show StatusNotifierItems (AppIndicators) via FlowBox
+ depends = gtk3
+ depends = xfce4-panel>=4.11.2
+ depends = sntray-plugin-translations-git
+ optdepends = vala-panel-extras-volume: ALSA volume applet
+ optdepends = vala-panel-extras-battery: UPower battery applet
+ optdepends = vala-panel-extras-weather: Weather applet
+ optdepends = vala-panel-extras-xkb: XKB applet
+ optdepends = sni-qt: Qt applications for StatusNotifier
+ optdepends = libappindicator-gtk2: Gtk2 applications for StatusNotifier
+ optdepends = libappindicator-gtk3: Gtk3 applications for StatusNotifier
+
+pkgname = vala-panel-sntray-git
+ pkgdesc = Plugin for vala-panel to show StatusNotifierItems (AppIndicators) via FlowBox
+ install = vala-panel-sntray.install
+ depends = gtk3
+ depends = vala-panel
+ depends = libpeas
+ depends = sntray-plugin-translations-git
+ optdepends = vala-panel-extras-volume: ALSA volume applet
+ optdepends = vala-panel-extras-battery: UPower battery applet
+ optdepends = vala-panel-extras-weather: Weather applet
+ optdepends = vala-panel-extras-xkb: XKB applet
+ optdepends = sni-qt: Qt applications for StatusNotifier
+ optdepends = libappindicator-gtk2: Gtk2 applications for StatusNotifier
+ optdepends = libappindicator-gtk3: Gtk3 applications for StatusNotifier
+
+pkgname = budgie-sntray-git
+ pkgdesc = Plugin for budgie to show StatusNotifierItems (AppIndicators) via FlowBox
+ install = vala-panel-sntray.install
+ depends = budgie-desktop
+ depends = gtk3
+ depends = libpeas
+ depends = sntray-plugin-translations-git
+ optdepends = vala-panel-extras-volume: ALSA volume applet
+ optdepends = vala-panel-extras-battery: UPower battery applet
+ optdepends = vala-panel-extras-weather: Weather applet
+ optdepends = vala-panel-extras-xkb: XKB applet
+ optdepends = sni-qt: Qt applications for StatusNotifier
+ optdepends = libappindicator-gtk2: Gtk2 applications for StatusNotifier
+ optdepends = libappindicator-gtk3: Gtk3 applications for StatusNotifier
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..c7733355796
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,196 @@
+# Maintainer: rilian-la-te <ria.freelander@gmail.com>
+
+_disable_mate=0
+_disable_xfce=0
+_disable_vala=0
+_disable_budgie=0
+
+pkgname=(
+'sntray-plugin-translations-git'
+)
+
+_opts=(
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_LIBDIR=lib
+ -DCMAKE_INSTALL_LIBEXECDIR=lib
+)
+
+makedepends=('cmake' 'vala' 'gtk3' 'libpeas')
+
+if (("${_disable_mate}" == 0));then
+ _opts+=(-DENABLE_MATE=ON)
+ pkgname+=('mate-panel-sntray-git')
+ 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-sntray-git')
+ 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+=('vala-panel-sntray-git')
+ makedepends+=('vala-panel-git')
+ msg "Vala Panel applet enabled"
+else
+ _opts+=(-DENABLE_VALAPANEL=OFF)
+fi
+
+if (("${_disable_budgie}" == 0));then
+ _opts+=(-DENABLE_BUDGIE=ON)
+ pkgname+=('budgie-sntray-git')
+ 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=vala-panel-sntray-git
+_pkgbase=xfce4-sntray-plugin
+_cmakename=cmake-vala
+_dbusmenuname=vala-dbusmenu
+pkgver=0.4.8.r4.gcb7c65f
+pkgrel=1
+pkgdesc="Plugin for xfce4-panel and vala-panel to show StatusNotifierItems (AppIndicators) via FlowBox"
+url="https://github.com/rilian-la-te/xfce4-sntray-plugin"
+arch=('i686' 'x86_64')
+license=('LGPL')
+source=("git://github.com/rilian-la-te/${_pkgbase}.git"
+ "git://github.com/rilian-la-te/${_cmakename}.git"
+ "git://github.com/rilian-la-te/${_dbusmenuname}.git")
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgbase}"
+ ( set -o pipefail
+ git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
+}
+
+prepare() {
+ cd "${srcdir}/${_cmakename}"
+ cp -r . "${srcdir}/${_pkgbase}/cmake/vala"
+ cd "${srcdir}/${_dbusmenuname}"
+ cp -r . "${srcdir}/${_pkgbase}/src/dbusmenu"
+}
+
+build(){
+ cd "${srcdir}/${_pkgbase}"
+ cmake ./ "${_opts[@]}"
+ make
+}
+
+package_xfce4-panel-sntray-git(){
+ pkgdesc="Plugin for xfce4-panel to show StatusNotifierItems (AppIndicators) via FlowBox"
+ depends=('gtk3' 'xfce4-panel>=4.11.2' 'sntray-plugin-translations-git')
+ optdepends=('vala-panel-extras-volume: ALSA volume applet'
+ 'vala-panel-extras-battery: UPower battery applet'
+ 'vala-panel-extras-weather: Weather applet'
+ 'vala-panel-extras-xkb: XKB applet'
+ 'sni-qt: Qt applications for StatusNotifier'
+ 'libappindicator-gtk2: Gtk2 applications for StatusNotifier'
+ 'libappindicator-gtk3: Gtk3 applications for StatusNotifier')
+ cd "${srcdir}/${_pkgbase}"
+ make -C "src" DESTDIR="${pkgdir}" install
+ make -C "data" DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}/usr/lib/vala-panel"
+ 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_mate-panel-sntray-git(){
+ install=vala-panel-sntray.install
+ pkgdesc="Plugin for mate-panel to show StatusNotifierItems (AppIndicators) via FlowBox"
+ depends=('gtk3' 'mate-panel' 'sntray-plugin-translations-git')
+ optdepends=('vala-panel-extras-volume: ALSA volume applet'
+ 'vala-panel-extras-battery: UPower battery applet'
+ 'vala-panel-extras-weather: Weather applet'
+ 'vala-panel-extras-xkb: XKB applet'
+ 'sni-qt: Qt applications for StatusNotifier'
+ 'libappindicator-gtk2: Gtk2 applications for StatusNotifier'
+ 'libappindicator-gtk3: Gtk3 applications for StatusNotifier')
+ cd "${srcdir}/${_pkgbase}"
+ make -C "src" DESTDIR="${pkgdir}" install
+ make -C "data" DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}/usr/lib/vala-panel"
+ rm -rf "${pkgdir}/usr/lib/xfce4"
+ rm -rf "${pkgdir}/usr/share/xfce4"
+ rm -rf "${pkgdir}/usr/lib/budgie-desktop"
+ rm -rf "${pkgdir}/usr/share/glib-2.0"
+}
+
+package_vala-panel-sntray-git(){
+ pkgdesc="Plugin for vala-panel to show StatusNotifierItems (AppIndicators) via FlowBox"
+ depends=('gtk3' 'vala-panel' 'libpeas' 'sntray-plugin-translations-git')
+ install=vala-panel-sntray.install
+ optdepends=('vala-panel-extras-volume: ALSA volume applet'
+ 'vala-panel-extras-battery: UPower battery applet'
+ 'vala-panel-extras-weather: Weather applet'
+ 'vala-panel-extras-xkb: XKB applet'
+ 'sni-qt: Qt applications for StatusNotifier'
+ 'libappindicator-gtk2: Gtk2 applications for StatusNotifier'
+ 'libappindicator-gtk3: Gtk3 applications for StatusNotifier')
+ cd "${srcdir}/${_pkgbase}"
+ make -C "src" DESTDIR="${pkgdir}" install
+ make -C "data" DESTDIR="${pkgdir}" install
+ 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-sntray-git(){
+ install=vala-panel-sntray.install
+ pkgdesc="Plugin for budgie to show StatusNotifierItems (AppIndicators) via FlowBox"
+ depends=('budgie-desktop' 'gtk3' 'libpeas' 'sntray-plugin-translations-git')
+ optdepends=('vala-panel-extras-volume: ALSA volume applet'
+ 'vala-panel-extras-battery: UPower battery applet'
+ 'vala-panel-extras-weather: Weather applet'
+ 'vala-panel-extras-xkb: XKB applet'
+ 'sni-qt: Qt applications for StatusNotifier'
+ 'libappindicator-gtk2: Gtk2 applications for StatusNotifier'
+ 'libappindicator-gtk3: Gtk3 applications for StatusNotifier')
+ cd "${srcdir}/${_pkgbase}"
+ make -C "src" DESTDIR="${pkgdir}" install
+ make -C "data" DESTDIR="${pkgdir}" install
+ 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/vala-panel"
+ rm -rf "${pkgdir}/usr/share/glib-2.0"
+ rm -rf "${pkgdir}/usr/share/dbus-1"
+}
+
+package_sntray-plugin-translations-git(){
+ pkgdesc="Translations for StatusNotifier Menu"
+ optdepends=('xfce4-panel-sntray-git' 'mate-panel-sntray-git' 'vala-panel-sntray-git' 'budgie-sntray-git')
+ arch=('any')
+ cd "${srcdir}/${_pkgbase}"
+ 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/lib/"
+ rm -rf "${pkgdir}/usr/share/dbus-1"
+}
diff --git a/vala-panel-sntray.install b/vala-panel-sntray.install
new file mode 100644
index 00000000000..2b25faeee77
--- /dev/null
+++ b/vala-panel-sntray.install
@@ -0,0 +1,12 @@
+post_install() {
+ glib-compile-schemas /usr/share/glib-2.0/schemas
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}