git » appmenu-gtk-module.git » commit e41efeb

Update to 0.7.3.1

author Antonio Rojas
2020-07-13 11:50:14 UTC
committer Antonio Rojas
2020-07-13 11:50:14 UTC
parent 49abf621b73183f089a7f504fc4b5884f633c2ea

Update to 0.7.3.1

PKGBUILD +7 -15

diff --git a/PKGBUILD b/PKGBUILD
index 279a056..85d267b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@
 # Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>
 
 pkgname=appmenu-gtk-module
-pkgver=0.7.3
-pkgrel=2
+pkgver=0.7.3.1
+pkgrel=1
 pkgdesc="Application Menu GTK+ Module"
 depends=()
 makedepends=(cmake gtk3 gtk2)
@@ -14,25 +14,17 @@ arch=(x86_64)
 license=(LGPL3)
 source=("https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/archive/$pkgver/vala-panel-appmenu-$pkgver.tar.gz"
         80-appmenu-gtk-module)
-sha256sums=('52e192db0b4da7706317f60b8d7135d86d166c5d97b7c47050596a5305e325aa'
+sha256sums=('7f5ce8a2c292069819dbc035416d6e18650865802ddaccb8dcfb0b93d43c3163'
             '4c006c4ea7b8556070ad6d35529d3a9e23da8033429e34d1824c25942d969fbc')
 
-prepare() {
-  mkdir -p build
-}
-
 build() {
-  cd build
-  cmake ../vala-panel-appmenu-$pkgver/subprojects/$pkgname \
+  cmake -B build -S vala-panel-appmenu-$pkgver/subprojects/$pkgname \
     -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_LIBDIR=lib \
     -DCMAKE_INSTALL_LIBEXECDIR=lib
-  make
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
-  install -dm755 "$pkgdir"/etc/X11/xinit/xinitrc.d/
-  install -m755 "$srcdir"/80-appmenu-gtk-module "$pkgdir"/etc/X11/xinit/xinitrc.d/
+  DESTDIR="$pkgdir" cmake --install build
+  install -Dm755 80-appmenu-gtk-module -t "$pkgdir"/etc/X11/xinit/xinitrc.d/
 }