description="An implementation of the line breaking algorithm as described in Unicode 5.2.0 Standard Annex 14, Revision 24"
url="https://github.com/adah1972/libunibreak/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="libunibreak"
version="6.1"
release=1

source=(https://github.com/adah1972/libunibreak/archive/refs/tags/libunibreak_${version//./_}.tar.gz)

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

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