archrelease: copy trunk to community-any
[ArchLinux/community.git] / utf8cpp / trunk / PKGBUILD
blobbec114e3d85d7ffd5683e58db398c80efb79069a
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 pkgname=utf8cpp
4 pkgver=3.2.3
5 pkgrel=1
6 pkgdesc="UTF-8 with C++ in a Portable Way"
7 arch=(any)
8 url="https://github.com/nemtrif/utfcpp"
9 license=(custom:BSL)
10 makedepends=(cmake)
11 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
12 sha256sums=('3ba9b0dbbff08767bdffe8f03b10e596ca351228862722e4c9d4d126d2865250')
14 build() {
15   cmake -B build -S ${pkgname/8}-${pkgver} \
16     -DCMAKE_BUILD_TYPE=None \
17     -DCMAKE_INSTALL_PREFIX=/usr \
18     -DCMAKE_INSTALL_LIBDIR=lib \
19     -DUTF8_TESTS=OFF
20   make -C build
23 package() {
24   make -C build DESTDIR="${pkgdir}" install
25   install -Dm644 ${pkgname/8}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/