summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2018-10-02 21:55:28 +0200
committerEmmanuel Gil Peyrot2018-10-02 21:55:28 +0200
commit566971875cd4e9c9b65b2c35b25e567086dc3dde (patch)
treebde922e983c621ea8cb3c12dc5b8f16be42e1a49 /PKGBUILD
parent38f15c69c2c0fbdf3a6b26398405bf3b270bd559 (diff)
downloadaur-gplugin-hg.tar.gz
Update for meson and new upstream URL.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 12 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 538894c1c35..4302bc55dc4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,11 +2,11 @@
_pkgbase=gplugin
pkgname="$_pkgbase-hg"
-pkgver=993.307728b2f727
+pkgver=1251.14d65225b360
pkgrel=1
pkgdesc="GObject based library that implements a reusable plugin system"
arch=('i686' 'x86_64' 'armv7h')
-url="https://guifications.org/"
+url="https://bitbucket.org/gplugin/gplugin"
license=('GPL')
depends=('glib2' 'gobject-introspection-runtime')
makedepends=('mercurial' 'cmake' 'gobject-introspection' 'gtk3'
@@ -16,8 +16,9 @@ optdepends=('gtk3: for GTK+ support'
'lua-lgi: for Lua support')
provides=("$_pkgbase=0.0.23")
conflicts=("$_pkgbase")
-source=("$_pkgbase::hg+https://bitbucket.org/gplugin/main#branch=develop")
+source=("$_pkgbase::hg+https://bitbucket.org/gplugin/gplugin#branch=develop")
sha256sums=('SKIP')
+options=('debug')
pkgver() {
cd "$srcdir/$_pkgbase"
@@ -26,20 +27,18 @@ pkgver() {
}
prepare() {
- mkdir -p "$srcdir/$_pkgbase/build"
- cd "$srcdir/$_pkgbase/build"
- cmake .. \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_LIBDIR=lib
+ cd $_pkgbase
+ meson build \
+ --prefix=/usr \
+ --buildtype=release
}
build() {
- cd "$srcdir/$_pkgbase/build"
- make
+ cd $_pkgbase
+ ninja -C build
}
package() {
- cd "$srcdir/$_pkgbase/build"
- make DESTDIR="$pkgdir/" install
+ cd $_pkgbase
+ DESTDIR="$pkgdir" ninja -C build install
}