Date: Monday, February 6, 2023 @ 02:42:56
  Author: grawlinson
Revision: 1393809

archrelease: copy trunk to community-x86_64

Added:
  zycore-c/repos/community-x86_64/
  zycore-c/repos/community-x86_64/PKGBUILD
    (from rev 1393808, zycore-c/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: zycore-c/repos/community-x86_64/PKGBUILD (from rev 1393808, 
zycore-c/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2023-02-06 02:42:56 UTC (rev 1393809)
@@ -0,0 +1,38 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=zycore-c
+pkgver=1.4.1
+pkgrel=2
+pkgdesc='Zyan Core Library for C'
+arch=('x86_64')
+url='https://github.com/zyantific/zycore-c'
+license=('MIT')
+depends=('glibc')
+makedepends=('git' 'cmake')
+_commit='1401fb85ac313f6605ec795c52bf99ea3f292a69'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cmake \
+    -S "$pkgname" \
+    -B build \
+    -D CMAKE_INSTALL_PREFIX=/usr \
+    -D ZYCORE_BUILD_SHARED_LIB=ON
+}
+
+build() {
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$pkgname/LICENSE"
+}

Reply via email to