testing/viewnior: use abuild-meson & meson compile/test/install

parent 2e3d9e2f
......@@ -97,6 +97,7 @@ build() {
_fontroot="/usr/share/fonts"
abuild-meson \
--sysconfdir=/etc/X11 \
-Dxorg=true \
-Dxephyr=true \
-Dxwayland=true \
......
......@@ -3,34 +3,23 @@
pkgname=viewnior
_pkgname=Viewnior
pkgver=1.7
pkgrel=2
pkgrel=3
pkgdesc="A fast and simple image viewer"
url="http://siyanpanayotov.com/project/viewnior"
arch="all"
license="GPL-3.0"
depends=""
license="GPL-3.0-or-later"
makedepends="gnome-common meson ninja gtk+2.0-dev exiv2-dev desktop-file-utils"
subpackages="$pkgname-lang $pkgname-doc"
source="https://github.com/hellosiyan/$_pkgname/archive/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgname-$pkgver
prepare() {
cd "$builddir"
mkdir builddir
}
build() {
cd "$builddir"
meson builddir \
--prefix=/usr \
--buildtype=plain
ninja -C builddir
abuild-meson builddir
meson compile ${JOBS:+-j ${JOBS}} -C builddir
}
package() {
cd "$builddir"
DESTDIR="$pkgdir" ninja -C builddir install
DESTDIR="$pkgdir" meson install --no-rebuild -C builddir
}
sha512sums="5ba17d7b5ceeffa65b04213f179c1439b09ac44e412e0750dde159b118a714f28d3a290509a402b234e4e7ba5b185fc73eef65d418598f344911e4e2c1373fe5 viewnior-1.7.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment