summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-11-01 03:24:14 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-12-10 20:20:24 +0300
commitf582a3973a6a9f251b9124fdeda6867553762c82 (patch)
tree985efeb716f5f5b800fcbdf6047fb4756f723ce5
downloadtomlc99-git-f582a3973a6a9f251b9124fdeda6867553762c82.tar.gz
tomlc99-git-f582a3973a6a9f251b9124fdeda6867553762c82.zip
Initial commit: tomlc99 library PKGBUILDHEADmaster
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD30
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..f3abeac
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = tomlc99-git
+ pkgdesc = TOML C library
+ pkgver = r73.5be0680
+ pkgrel = 1
+ epoch = 1
+ url = https://github.com/cktan/tomlc99
+ arch = any
+ license = MIT
+ makedepends = make
+ provides = tomlc99
+ conflicts = tomlc99
+ source = git://github.com/cktan/tomlc99.git
+ md5sums = SKIP
+
+pkgname = tomlc99-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8197674
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar.*
+src
+pkg
+tomlc99
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..fb01084
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Yaroslav de la Peña Smirnov <yps@yaroslavps.com>
+pkgname=tomlc99-git
+_pkgname=${pkgname%-git}
+pkgver=r76.d17c005
+pkgrel=1
+epoch=1
+pkgdesc="TOML C library"
+arch=('any')
+url="https://github.com/cktan/$_pkgname"
+license=('MIT')
+makedepends=('make')
+provides=('tomlc99')
+conflicts=('tomlc99')
+source=("git://github.com/cktan/$_pkgname.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ make prefix="$pkgdir/usr/" install
+}