Date: Monday, October 7, 2019 @ 06:55:55 Author: archange Revision: 513682
Initial addition of utf8cpp to [community] Added: utf8cpp/ utf8cpp/repos/ utf8cpp/trunk/ utf8cpp/trunk/PKGBUILD ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Added: utf8cpp/trunk/PKGBUILD =================================================================== --- utf8cpp/trunk/PKGBUILD (rev 0) +++ utf8cpp/trunk/PKGBUILD 2019-10-07 06:55:55 UTC (rev 513682) @@ -0,0 +1,31 @@ +# Maintainer: Bruno Pagani <[email protected]> + +pkgname=utf8cpp +pkgver=3.1 +pkgrel=1 +pkgdesc="UTF-8 with C++ in a Portable Way" +arch=(any) +url="https://github.com/nemtrif/utfcpp" +license=(custom:BSL) +makedepends=(cmake) +source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('ab531c3fd5d275150430bfaca01d7d15e017a188183be932322f2f651506b096') + +prepare() { + mkdir -p build +} + +build() { + cd build + cmake ../${pkgname/8}-${pkgver} \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DUTF8_TESTS=OFF + make +} + +package() { + make -C build DESTDIR="${pkgdir}" install + install -Dm644 ${pkgname/8}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ +}
