summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaizhao Zhang2018-11-20 21:42:25 +0800
committerKaizhao Zhang2018-11-20 21:42:25 +0800
commit67f0f8ecf9cf15b64e2b33415358383e086b234a (patch)
treeccbe8816a172e8231870f1a6118a6fe7a0a84146
parentf7281993376b19cfdc2874267057c9c1c89bde1a (diff)
downloadaur-67f0f8ecf9cf15b64e2b33415358383e086b234a.tar.gz
Update version to 0.7.1+1+6d30c29
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD46
2 files changed, 46 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 60b663b41dd..c2f6b21d778 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = budgie-vala-panel-appmenu-applet
pkgdesc = Vala Panel Application Menu for Budgie Desktop
- pkgver = 0.6.94
+ pkgver = 0.7.1+1+6d30c29
pkgrel = 1
url = https://github.com/rilian-la-te/vala-panel-appmenu
arch = i686
@@ -12,14 +12,18 @@ pkgbase = budgie-vala-panel-appmenu-applet
makedepends = gtk3
makedepends = libwnck3
makedepends = vala
- depends = appmenu-gtk-module=0.6.94
+ depends = appmenu-gtk-module>=0.6.94
depends = budgie-desktop
- depends = vala-panel-appmenu-common=0.6.94
+ depends = vala-panel-appmenu-common>=0.7.1
optdepends = appmenu-qt4: for qt4 menus
optdepends = appmenu-qt5: for qt5 menus
+ optdepends = libdbusmenu-gtk2: for Chromium/Google Chrome support
+ optdepends = libdbusmenu-gtk3: for Chromium/Google Chrome support
conflicts = vala-panel-appmenu-budgie-git
- source = https://github.com/rilian-la-te/vala-panel-appmenu/releases/download/0.6.94/vala-panel-appmenu-0.6.94.tar.gz
- sha512sums = 9ba216b2760bd8f7999c0731e80f231af67d30fd2d44f3a906d2dde0784683bb3c348556144b2e18166d0b38d3b4583ca4dd9655463b0ded6e1b5f1a248af5f7
+ source = git+https://github.com/rilian-la-te/vala-panel-appmenu.git#commit=6d30c2961a002789cbfe98827744edb2a9c2e3a1
+ source = git+https://github.com/rilian-la-te/cmake-vala.git#commit=1bce300e6995c055296a79122d19993bc5085b75
+ sha256sums = SKIP
+ sha256sums = SKIP
pkgname = budgie-vala-panel-appmenu-applet
diff --git a/PKGBUILD b/PKGBUILD
index ae21ed1f115..4ae20845c73 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,47 @@
# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
_srcname=vala-panel-appmenu
+_gitcommit=6d30c2961a002789cbfe98827744edb2a9c2e3a1
+_cmakevala_gitcommit=1bce300e6995c055296a79122d19993bc5085b75
pkgname=budgie-vala-panel-appmenu-applet
-pkgver=0.6.94
+pkgver=0.7.1+1+6d30c29
pkgrel=1
pkgdesc="Vala Panel Application Menu for Budgie Desktop"
url='https://github.com/rilian-la-te/vala-panel-appmenu'
arch=('i686' 'x86_64')
license=('LGPL3')
-depends=("appmenu-gtk-module=${pkgver}" 'budgie-desktop' "vala-panel-appmenu-common=${pkgver}")
-optdepends=('appmenu-qt4: for qt4 menus'
- 'appmenu-qt5: for qt5 menus')
+depends=("appmenu-gtk-module>=0.6.94" 'budgie-desktop' 'vala-panel-appmenu-common>=0.7.1')
+optdepends=(
+ 'appmenu-qt4: for qt4 menus'
+ 'appmenu-qt5: for qt5 menus'
+ 'libdbusmenu-gtk2: for Chromium/Google Chrome support'
+ 'libdbusmenu-gtk3: for Chromium/Google Chrome support'
+)
makedepends=('bamf>=0.5.0' 'cmake' 'gobject-introspection' 'gtk3' 'libwnck3' 'vala')
conflicts=('vala-panel-appmenu-budgie-git')
-source=("https://github.com/rilian-la-te/vala-panel-appmenu/releases/download/${pkgver}/${_srcname}-${pkgver}.tar.gz")
-sha512sums=('9ba216b2760bd8f7999c0731e80f231af67d30fd2d44f3a906d2dde0784683bb3c348556144b2e18166d0b38d3b4583ca4dd9655463b0ded6e1b5f1a248af5f7')
+source=(
+ "git+https://github.com/rilian-la-te/vala-panel-appmenu.git#commit=${_gitcommit}"
+ "git+https://github.com/rilian-la-te/cmake-vala.git#commit=${_cmakevala_gitcommit}"
+)
+sha256sums=(
+ 'SKIP'
+ 'SKIP'
+)
+
+prepare() {
+ rm -rf "${srcdir}/${_srcname}/cmake"
+ cd "${srcdir}/cmake-vala"
+ cp -r . "${srcdir}/${_srcname}/cmake"
+
+ cd "${srcdir}/${_srcname}"
+ mkdir -p build
+}
build() {
- cd "${srcdir}/${_srcname}-${pkgver}"
- cmake ./ \
+ cd "${srcdir}/${_srcname}/build"
+ cmake ../ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
@@ -36,8 +57,15 @@ build() {
}
package() {
- cd "${srcdir}/${_srcname}-${pkgver}"
+ cd "${srcdir}/${_srcname}/build"
make -C "lib" DESTDIR="${pkgdir}" install
make -C "data" DESTDIR="${pkgdir}" install
+
+ # These files have moved to vala-panel-appmenu-common package.
rm -rf "${pkgdir}/usr/share"
+
+ # Document and license.
+ cd "${srcdir}/${_srcname}"
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}