[arch-commits] Commit in utf8cpp/repos (community-any community-any/PKGBUILD)
Bruno Pagani
archange at archlinux.org
Mon Oct 7 06:56:27 UTC 2019
Date: Monday, October 7, 2019 @ 06:56:26
Author: archange
Revision: 513683
archrelease: copy trunk to community-any
Added:
utf8cpp/repos/community-any/
utf8cpp/repos/community-any/PKGBUILD
(from rev 513682, utf8cpp/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: utf8cpp/repos/community-any/PKGBUILD (from rev 513682, utf8cpp/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2019-10-07 06:56:26 UTC (rev 513683)
@@ -0,0 +1,31 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+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}/
+}
More information about the arch-commits
mailing list