summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-06 15:49:47 +0700
committerShulhan <ms@kilabit.info>2022-08-06 15:49:47 +0700
commitafc3d42262768ee6e559bd72408f9b6a052fd369 (patch)
tree948d1d900802095f477cddae0eb4e3fdaad3c159
parentcbcd1d10d415036d8bd00c709014cc5272340b1a (diff)
downloadciigo-afc3d42262768ee6e559bd72408f9b6a052fd369.tar.xz
all: add package build for Arch Linux
-rw-r--r--.reuse/dep54
-rw-r--r--_AUR/.SRCINFO14
-rw-r--r--_AUR/.gitignore4
-rw-r--r--_AUR/Makefile7
-rw-r--r--_AUR/PKGBUILD41
5 files changed, 70 insertions, 0 deletions
diff --git a/.reuse/dep5 b/.reuse/dep5
index b3e23d2..e318956 100644
--- a/.reuse/dep5
+++ b/.reuse/dep5
@@ -18,3 +18,7 @@ License: GPL-3.0-or-later
Files: testdata/*
Copyright: 2022 Shulhan <ms@kilabit.info>
License: GPL-3.0-or-later
+
+Files: _AUR/*
+Copyright: 2022 Shulhan <ms@kilabit.info>
+License: GPL-3.0-or-later
diff --git a/_AUR/.SRCINFO b/_AUR/.SRCINFO
new file mode 100644
index 0000000..0d67863
--- /dev/null
+++ b/_AUR/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ciigo-git
+ pkgdesc = CLI to convert, generate, and/or serve AsciiDoc markup files as HTML files.
+ pkgver = 0.8.2.r8.g4624f71
+ pkgrel = 1
+ url = https://git.sr.ht/~shulhan/ciigo
+ arch = x86_64
+ license = GPL3
+ makedepends = go
+ makedepends = git
+ provides = ciigo
+ source = ciigo-git::git+https://git.sr.ht/~shulhan/ciigo
+ md5sums = SKIP
+
+pkgname = ciigo-git
diff --git a/_AUR/.gitignore b/_AUR/.gitignore
new file mode 100644
index 0000000..f925430
--- /dev/null
+++ b/_AUR/.gitignore
@@ -0,0 +1,4 @@
+ciigo-git
+pkg
+src
+*.tar.zst
diff --git a/_AUR/Makefile b/_AUR/Makefile
new file mode 100644
index 0000000..1fda06c
--- /dev/null
+++ b/_AUR/Makefile
@@ -0,0 +1,7 @@
+.PHONY: all release
+
+all:
+ makepkg -s
+
+release:
+ makepkg --printsrcinfo > .SRCINFO
diff --git a/_AUR/PKGBUILD b/_AUR/PKGBUILD
new file mode 100644
index 0000000..ea3fa70
--- /dev/null
+++ b/_AUR/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: shulhan <ms@kilabit.info>
+
+pkgname=ciigo-git
+pkgver=0.8.2.r8.g4624f71
+pkgrel=1
+
+pkgdesc="CLI to convert, generate, and/or serve AsciiDoc markup files as HTML files."
+arch=(x86_64)
+url='https://git.sr.ht/~shulhan/ciigo'
+license=('GPL3')
+
+makedepends=(
+ 'go'
+ 'git'
+)
+
+provides=('ciigo')
+
+source=(
+ "$pkgname::git+https://git.sr.ht/~shulhan/ciigo"
+ #"$pkgname::git+file:///home/ms/go/src/git.sr.ht/~shulhan/ciigo"
+)
+md5sums=(
+ 'SKIP'
+)
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$pkgname"
+ make
+}
+
+package() {
+ cd "$pkgname"
+ install -Dm755 _bin/ciigo $pkgdir/usr/bin/ciigo
+ install -Dm755 COPYING $pkgdir/usr/share/licenses/ciigo/COPYING
+}