42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=clutter-gtk
|
|
pkgver=1.8.4
|
|
_debver=1.8.4
|
|
_debrel=4
|
|
pkgrel=1
|
|
pkgdesc='Clutter integration with GTK+'
|
|
arch=('i686' 'x86_64')
|
|
url='https://gitlab.gnome.org/GNOME/clutter-gtk'
|
|
license=('LGPL-2.1')
|
|
depends=('clutter')
|
|
makedepends=('gobject-introspection' 'meson' 'ninja' 'quilt')
|
|
source=("https://deb.debian.org/debian/pool/main/c/clutter-gtk/clutter-gtk_${pkgver}.orig.tar.xz"
|
|
"https://deb.debian.org/debian/pool/main/c/clutter-gtk/clutter-gtk_${_debver}-${_debrel}.debian.tar.xz")
|
|
sha512sums=('810f879a56cd71f1e9c4678ef704a997ee652d052cfea56b3ed9478f7a813a35dd2fdcded028ce17411ae02da52fa31e0fb8d1f4130c7b9f6d25eeb774b51ada'
|
|
'f78f67b85690450616c22dba268c1eee082d1cc7c9fc3677f8ac00f70a2126eba33708f6d66c848b47a6bd98c630fd04828fd0a98e9544355a8f080649b46005')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
|
# Debian patches
|
|
export QUILT_PATCHES=debian/patches
|
|
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
|
export QUILT_DIFF_ARGS='--no-timestamps'
|
|
|
|
mv "$srcdir"/debian .
|
|
|
|
quilt push -av
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
hyperbola-meson $pkgname-$pkgver build -Denable_docs=false
|
|
ninja -C build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install -C build
|
|
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/COPYING" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
|
}
|