summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 21 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 602e037..d471c71 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,32 @@
-# Maintainer: Gabriel Jensen
+# Maintainer: Gabriel Bjørnager Jensen
pkgname=u8c
-pkgver=25.0.0
+pkgver=29.0.029_30.a48610b
pkgrel=1
-pkgdesc="Library for Unicode manipulation."
+pkgdesc="Unicode for C."
arch=("any")
-url="https://mandelbrot.dk/delta/u8c"
-makedepends=("git")
-source=("git+https://mandelbrot.dk/delta/u8c.git")
-license=("AGPL3")
+url="https://mandelbrot.dk/u8c"
+makedepends=("cmake" "git")
+source=("git+https://mandelbrot.dk/u8c")
+license=("LGPL3")
sha512sums=("SKIP")
pkgver() {
- cd "$srcdir/$pkgname"
+ cd "${srcdir}/u8c"
printf "%s.0.0" "$(($(git rev-list --count HEAD) - 1))"
+ printf "%s_%s.%s" "$(git describe --abbrev=0 --tags)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+prepare() {
+ cd "${srcdir}/u8c"
+ cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
}
build() {
- cd "$srcdir/$pkgname"
- make -j$(nproc)
+ cd "${srcdir}/u8c"
+ cmake --build build
}
package() {
- cd "$srcdir/$pkgname"
- make DESTDIR="$pkgdir/usr" thrdsafe=1 install
+ cd "${srcdir}/u8c"
+ mkdir -pm755 "${pkgdir}/usr/include/u8c"
+ mkdir -pm755 "${pkgdir}/usr/lib"
+ install -m755 "build/u8c/libu8c.so" "${pkgdir}/usr/lib/"
+ install -m644 "u8c/include/u8c/"*".h" "${pkgdir}/usr/include/u8c/"
}
+