blob: d69e9365bcd1413ecc0d4e2dff2c2b682ffa3440 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=ots
pkgver=9.2.0
pkgrel=1
pkgdesc='OpenType fonts sanitiser. Supports TTF, WOFF, WOFF2 and other formats'
arch=(x86_64 i686)
url=https://github.com/khaledhosny/ots
license=(custom)
depends=(freetype2
libfreetype.so
woff2)
makedepends=(meson
ninja)
checkdepends=(gtest)
source=("$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=('1a1e50cd7ecea27c4ef04c5b1491c21e75555f35bf91e27103ede04ddd11e053')
build() {
cd "$pkgname-$pkgver"
arch-meson build -Dgraphite=true -Dcpp_std=c++14
ninja -C build
}
check () {
meson test -C "$pkgname-$pkgver/build"
}
package() {
cd "$pkgname-$pkgver"
DESTDIR="$pkgdir" ninja -C build install
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|