diff options
author | sL1pKn07 | 2019-05-20 21:55:06 +0200 |
---|---|---|
committer | sL1pKn07 | 2019-05-20 21:55:06 +0200 |
commit | 27c2be0041da931c0df52dc3941a3f7b5590a5bf (patch) | |
tree | 5a9007a297b97e0e7addca5f11023182a6253a39 | |
parent | db389d89a27e14a2620430bfe18d3236fdd3c648 (diff) | |
download | aur-utf8cpp.tar.gz |
Switch to cmake installation method
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 20 insertions, 7 deletions
@@ -1,12 +1,11 @@ -# Generated by mksrcinfo v8 -# Tue Apr 30 04:41:07 UTC 2019 pkgbase = utf8cpp pkgdesc = UTF-8 with C++ in a Portable Way pkgver = 3.1 - pkgrel = 1 + pkgrel = 2 url = http://utfcpp.sourceforge.net arch = any license = Custom + makedepends = cmake source = https://github.com/nemtrif/utfcpp/archive/v3.1.tar.gz sha256sums = ab531c3fd5d275150430bfaca01d7d15e017a188183be932322f2f651506b096 @@ -3,16 +3,30 @@ pkgname=utf8cpp pkgver=3.1 -pkgrel=1 +pkgrel=2 pkgdesc="UTF-8 with C++ in a Portable Way" url='http://utfcpp.sourceforge.net' arch=('any') license=('Custom') +makedepends=('cmake') source=("https://github.com/nemtrif/utfcpp/archive/v${pkgver}.tar.gz") sha256sums=('ab531c3fd5d275150430bfaca01d7d15e017a188183be932322f2f651506b096') +prepare() { + mkdir -p build +} + +build() { + cd build + cmake "../utfcpp-${pkgver}" \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DUTF8_TESTS=OFF + + make +} + package() { - cd "utfcpp-${pkgver}/source" - install -d "${pkgdir}/usr/include" - for i in $(find . -type f); do install -Dm644 ${i} "${pkgdir}/usr/include/${i}"; done + make -C build DESTDIR="${pkgdir}" install } |