diff options
author | Mubashshir | 2021-11-19 12:35:36 +0600 |
---|---|---|
committer | Mubashshir | 2021-11-19 12:38:31 +0600 |
commit | 9305b95b3536794173c303f0c22ffef8073c2f73 (patch) | |
tree | 1395ff5b2625cce530a1ac6d6a3fdbf73e614f4f /PKGBUILD | |
parent | 8a993b9f06cf2af965baa96bf6533e11a94e79e8 (diff) | |
download | aur-9305b95b3536794173c303f0c22ffef8073c2f73.tar.gz |
upgpkg: autovala 1.16.0-1
upstream release
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 66 |
1 files changed, 47 insertions, 19 deletions
@@ -1,18 +1,20 @@ # Maintainer: Dimitris Kiziridis <ragouel at outlook dot com> # Contributor: Mario Steele <mario@ruby-im.net> +# from: gitlab +# what: rastersoft/autovala -pkgname=autovala -pkgver=1.15.1 +pkgbase=autovala +pkgname=( + autovala + gedit-autovala +) +pkgver=1.16.0 pkgrel=1 pkgdesc="A program that automatically generates CMake and Meson configuration files for your Vala project" arch=('x86_64') url="https://gitlab.com/rastersoft/autovala" license=('GPL3') groups=('vala') -depends=('make' - 'vte3' - 'libgee' - 'bash-completion') makedepends=('vala' 'cmake' 'libgee' @@ -20,20 +22,46 @@ makedepends=('vala' 'pandoc' 'bash-completion' 'gobject-introspection') -install=autovala.install -source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/rastersoft/autovala/-/archive/${pkgver}/autovala-${pkgver}.tar.gz") -sha256sums=('af77e46d7ac50eb34e63ab5477a1f94f696f05fae41b21282961819820051f4b') +source=("git+https://gitlab.com/rastersoft/autovala#tag=$pkgver" gedit40.patch) +sha256sums=('SKIP' + 'SKIP') +prepare() { + patch -d autovala -p1 < gedit40.patch +} build() { - cd "${pkgname}-${pkgver}" - rm -rf build - mkdir build - cd build - cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_LIBDIR="/usr/lib" .. - make + arch-meson autovala build --reconfigure + meson compile -C build + for each in build/meson-uninstalled/*-uninstalled.pc;do + mv "$each" ${each%-*}.pc + done + arch-meson autovala/gedit_plugin \ + build-gedit --reconfigure \ + --pkg-config-path build/meson-uninstalled + echo $LDFLAGS + VALAFLAGS="$(echo "--"{vapidir,girdir}"=$PWD/build/src/"{autovalaLib,autovalaPlugin})" \ + meson compile -C build-gedit +} + +package_autovala() { + depends=('make' + 'bash-completion') + DESTDIR="$pkgdir" meson install -C build + mv "$pkgdir/usr"{,/share}/appdata + rm -rf "$pkgdir"/usr/share/doc/autovala/CMakeLists.txt } -package() { - cd "${pkgname}-${pkgver}/build" - make DESTDIR="${pkgdir}" install -}
\ No newline at end of file +package_gedit-autovala() { + depends=(autovala gedit vte3 + libgee gtksourceview4 libpeas) + DESTDIR="$pkgdir" meson install -C build-gedit + mv "$pkgdir"/usr/lib/gedit/plugins/autovala/libautovalagedit.so{.1.0.0,} + + rm -rf \ + "$pkgdir"/usr/lib/pkgconfig \ + "$pkgdir"/usr/lib/gedit/plugins/autovala/libautovalagedit.so.* \ + "$pkgdir"/usr/lib/gedit/plugins/autovala/autovalagedit{.h,.vapi,-1.0.gir,-1.0.typelib} \ + "$pkgdir"/usr/share/autovala_gedit \ + "$pkgdir"/usr/share/doc \ + "$pkgdir"/usr/share/vala +} |