jobcore/libunistring/PKGBUILD

50 lines
1.4 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libunistring
pkgver=1.1
pkgrel=02
pkgdesc='Library for manipulating Unicode strings and C strings'
url='https://www.gnu.org/software/libunistring/'
arch=(x86_64)
depends=(glibc)
makedepends=(gcc)
provides=('libunistring.so')
source=(https://ftp.gnu.org/gnu/$pkgname/${pkgname}-${pkgver}.tar.xz{,.sig})
#prepare() {
# cd $pkgname-$pkgver
# # https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=cca32830b5
# sed -i '/pragma weak pthread_create/d' tests/glthread/thread.h
#}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
check() {
make -C $pkgname-$pkgver check
}
package() {
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
}
#---- license gpg-key sha256sums ----
license=(GPL)
validpgpkeys=(462225C3B46F34879FC8496CD605848ED7E69871 # Daiki Ueno <ueno@unixuser.org>
9001B85AF9E1B83DF1BDA942F5BE8B267C6A406D) # Bruno Haible (Open Source Development) <bruno@clisp.org>
sha256sums=(827c1eb9cb6e7c738b171745dac0888aa58c5924df2e59239318383de0729b98 # libunistring-1.1.tar.xz
dadae6c38f85f9e8776231436c601c386924ceb44d511456c61c9be73608933d) # libunistring-1.1.tar.xz.sig