diff options
author | James An | 2018-04-23 02:46:49 -0400 |
---|---|---|
committer | James An | 2018-04-23 02:46:49 -0400 |
commit | 15c247a5d1bb1abc183c7bc44af2f9f3a694dc3a (patch) | |
tree | 9fb4d9e65d4ca55a650e86c906dadec2480b690e | |
download | aur-15c247a5d1bb1abc183c7bc44af2f9f3a694dc3a.tar.gz |
Initial commit with working PKGBUILD.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 27 | ||||
-rw-r--r-- | PKGBUILD | 36 |
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2945b4bc6cbc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = minica-git + pkgdesc = A small, simple CA intended for use in situations where the CA operator also operates each host where a certificate will be used. + pkgver = r8.3a621c0 + pkgrel = 1 + url = https://github.com/jsha/minica + arch = i686 + arch = x86_64 + license = unknown + makedepends = git + makedepends = go + provides = minica=r8.3a621c0 + conflicts = minica + source = minica::git+https://github.com/jsha/minica.git + md5sums = SKIP + +pkgname = minica-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..43316bc3c124 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# From: https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore + +*.tar +*.tar.* +*.zip +*.tgz +*.log +*.log.* +*.sig + +# makepkg working folders +pkg +src + +# +# Additional ignore patterns: +# + +# Source files +*.deb +*.gem +*.out +*.rpm +*.html + +# Ignore package source folders +*/* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..15d01b22d0e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: James An <james@jamesan.ca> + +pkgname=minica-git +_pkgname=${pkgname%-git} +pkgver=r8.3a621c0 +pkgrel=1 +pkgdesc='A small, simple CA intended for use in situations where the CA operator also operates each host where a certificate will be used.' +arch=('i686' 'x86_64') +url="https://github.com/jsha/$_pkgname" +license=('unknown') +makedepends=('git' 'go') +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") +source=("$_pkgname"::"git+https://github.com/jsha/$_pkgname.git") +md5sums=('SKIP') + +pkgver() { + cd "$_pkgname" + ( + set -o pipefail + git describe --long --tag | sed -r 's/([^-]*-g)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "$_pkgname" + + go build +} + +package() { + cd "$_pkgname" + + install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname" +} |