2018-04-28 14:41:16 +02:00

36 lines
1.1 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=utf8proc
pkgver=2.1.1
pkgrel=0
pkgdesc="A clean C library for processing UTF-8 Unicode data"
url="https://github.com/JuliaLang/utf8proc"
arch="all"
license="MIT custom"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/JuliaLang/$pkgname/archive/v$pkgver.tar.gz
$pkgname.pc
"
builddir="$srcdir/$pkgname-$pkgver"
options="!check" # testsuite has a dependency on Julia, which depends on this
prepare() {
cd "$builddir"
sed "s/@VERSION@/$pkgver/" "$srcdir"/$pkgname.pc > $pkgname.pc
}
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" prefix=/usr install
install -D $pkgname.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
}
sha512sums="66c3e79439dd4c4b148ec3a2a9f96442fcccb9e488384e52807f513dad64d4b7adea8626c60d21ea401ce4240ced0c71265de51c4d1550c37c8db9176dbb4fe8 utf8proc-2.1.1.tar.gz
95e6fe681b9bd35414c2e1b1948ab9eb37274cfbd9e7b970bc7685eb7e03155bd08781b48f3084a2c81440a54f12d4130ed19e06fe4fcc0f1e45d99f225636d7 utf8proc.pc"