# Maintainer: Jesus E. pkgname=fribidi pkgver=1.0.8 _debver=1.0.8 _debrel=2 pkgrel=1 pkgdesc="A Free Implementation of the Unicode Bidirectional Algorithm" url="https://github.com/fribidi/fribidi/" arch=(i686 x86_64) license=(LGPL-2.1) depends=(glibc) makedepends=(meson quilt) source=(https://github.com/fribidi/fribidi/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2 https://deb.debian.org/debian/pool/main/f/fribidi/fribidi_$_debver-$_debrel.debian.tar.xz) sha512sums=('d66b1524b26d227fd6a628f438efb875c023ae3be708acaaad11f1f62d0902de0a5f57124458291ef2b0fcd89356c52ab8ae5559b0b5a93fa435b92f1d098ba2' '04d10d26c3ccf3a0e2782a780fcbe64f1ab47c85633ffeefb1a9251e29ff20a046509afcb30b32a2ec52a52780d5054aad2ec07517b7b667fb06ab99125f9ea3') 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 \ -D docs=false ninja -C build } check() { meson test -C build --print-errorlogs } package() { DESTDIR="$pkgdir" meson install -C build install -Dm644 $pkgname-$pkgver/COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } # vim:set sw=2 et: