main/libunistring: modernise, mark no tests, fix license

This commit is contained in:
A. Wilcox 2018-02-10 23:57:31 -06:00 committed by William Pitcock
parent 8f5af5e6c6
commit 2c19669b1c

View File

@ -6,7 +6,8 @@ pkgrel=0
pkgdesc="Library for manipulating Unicode strings and C strings"
url="https://www.gnu.org/software/libunistring/"
arch="all"
license="GPL"
options="!check" # Tests fail with musl locale library
license="GPL-2.0+ OR LGPL-3.0+"
depends=""
depends_dev=""
makedepends="$depends_dev"
@ -14,19 +15,8 @@ install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnu.org/gnu/libunistring/libunistring-$pkgver.tar.xz"
_builddir="$srcdir"/libunistring-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@ -35,17 +25,14 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-static \
|| return 1
make || return 1
--disable-static
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/charset.alias
}
md5sums="82e0545363d111bfdfec2ddbfe62ffd3 libunistring-0.9.7.tar.xz"
sha256sums="2e3764512aaf2ce598af5a38818c0ea23dedf1ff5460070d1b6cee5c3336e797 libunistring-0.9.7.tar.xz"
sha512sums="52d5240dbf9b483976e980027187484dae6bbc103d44be8f9797832e772cde2ea03fcd27b062c81d42ea9b9f5a21216993695f2435bf8c06e48af916be0475f9 libunistring-0.9.7.tar.xz"