Name libunibreak
Description An implementation of the line breaking algorithm as described in Unicode 5.2.0 Standard Annex 14, Revision 24
Version 6.1-1
Package Base libunibreak
Homepage https://github.com/adah1972/libunibreak/
Maintainers ['Sergej Pupykin <pupykin.s+arch@gmail.com>', 'Sergej Pupykin <spupykin@archlinux.org>']
Contributors ['Orivej Desh <smpuj@bk.ru>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/libunibreak
Sources ['libunibreak-6.1.tar.gz::https://github.com/adah1972/libunibreak/archive/libunibreak_6_1.tar.gz']
Dependencies ['glibc']
Optional-Dependencies []
Build-Dependencies []
Provides []
Builddate 02-03-2024 17:00:24
Architecture x86_64
Distro-Version
Licenses ['custom:zlib/libpng']
Hash 65cb1acf8577abe04f958873fa5008772daaddd243835ac30ae6b8657d4af37f
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Orivej Desh <smpuj@bk.ru>

pkgname=libunibreak
pkgver=6.1
pkgrel=1
pkgdesc="An implementation of the line breaking algorithm as described in Unicode 5.2.0 Standard Annex 14, Revision 24"
arch=("x86_64")
url="https://github.com/adah1972/libunibreak/"
license=("custom:zlib/libpng")
depends=('glibc')
replaces=('liblinebreak')
source=("$pkgname-$pkgver.tar.gz::https://github.com/adah1972/libunibreak/archive/libunibreak_${pkgver//./_}.tar.gz")
sha256sums=('890674996168ef5ba143d80d49ab8b61594a4eb70198dcac76caf6e1bd264a41')

build() {
  cd "$srcdir/libunibreak-libunibreak_${pkgver//./_}"
  ./bootstrap
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/libunibreak-libunibreak_${pkgver//./_}"
  make DESTDIR="$pkgdir" install
  rm -f "$pkgdir"/usr/lib/*.a
  install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}