mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
35 lines
700 B
Bash
35 lines
700 B
Bash
pkgname=json-glib
|
|
pkgver=1.4.2
|
|
pkgrel=1
|
|
pkgdesc="JSON library built on GLib"
|
|
arch=('x86_64')
|
|
url="http://live.gnome.org/JsonGlib"
|
|
license=('GPL')
|
|
depends=('glib2')
|
|
makedepends=('gobject-introspection' 'python3' 'meson' 'gtk-doc')
|
|
source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver:0:3}/${pkgname}-${pkgver}.tar.xz)
|
|
sha256sums=('2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8')
|
|
|
|
prepare() {
|
|
mkdir build
|
|
cd $pkgname-$pkgver
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
meson setup --prefix=/usr --buildtype=release ../$pkgname-$pkgver \
|
|
--libexecdir=/usr/lib -Ddocs=true
|
|
ninja
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
meson test
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
DESTDIR="$pkgdir" ninja install
|
|
}
|
|
|