summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 745e69123fc36e068a88d964fe1be7a76f7ac312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: ilovemikael <itsmeguys2247 at gmail dot com>
# Maintainer: ROllerozxa <temporaryemail4meh [gee mail]>
# Contributor: Ivy Foster <ivy.foster@gmail.com>

_pkgname='libutf8proc'
pkgname='libutf8proc-git'
pkgver=2.11.3.r0.ge5e7992
pkgrel=1
pkgdesc="C library for processing UTF-8 encoded Unicode strings"
arch=('i686' 'x86_64')
url="https://github.com/JuliaStrings/utf8proc"
license=('MIT')
depends=('glibc')
makedepends=('git' 'cmake' 'ninja')
provides=('libutf8proc')
conflicts=('libutf8proc')
source=("git+https://github.com/JuliaStrings/utf8proc.git")
sha256sums=('SKIP')

pkgver() {
	cd utf8proc
  git describe --long --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cmake \
    -B build \
    -D CMAKE_BUILD_TYPE=Release -GNinja \
    -D CMAKE_INSTALL_LIBDIR=lib \
    -D CMAKE_INSTALL_PREFIX=/usr \
    -D BUILD_SHARED_LIBS=ON \
    -S utf8proc
  cmake --build build
}

package() {
  DESTDIR="${pkgdir}" cmake --install build
  install -Dm64 utf8proc/README.md  "$pkgdir/usr/share/doc/$_pkgname/README.md"
  install -Dm64 utf8proc/LICENSE.md "$pkgdir/usr/share/licenses/$_pkgname/LICENSE.md"
}