diff options
author | Simon Legner | 2018-07-20 13:46:13 +0200 |
---|---|---|
committer | Simon Legner | 2018-07-20 13:46:13 +0200 |
commit | f923532ff25d2a76be54b93d9b16a0faf9819f1d (patch) | |
tree | 620f0833474a8050b28ae7aecc38ba632618e169 | |
download | aur-f923532ff25d2a76be54b93d9b16a0faf9819f1d.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..21496f779bb6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = mkcert + pkgdesc = A simple tool for making locally-trusted development certificates + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/FiloSottile/mkcert + arch = x86_64 + license = BSD + makedepends = go + makedepends = git + source = mkcert-1.0.0.tar.gz::https://github.com/FiloSottile/mkcert/archive/v1.0.0.tar.gz + sha256sums = c98bff8727354a5ba4071d5256577935f5c2fe672d1f33e49ffebd983eae2f10 + +pkgname = mkcert + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..50d37be9a793 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Simon Legner <Simon.Legner@gmail.com> + +pkgname=mkcert +_package="github.com/FiloSottile/${pkgname}" +pkgver=1.0.0 +pkgrel=1 +pkgdesc="A simple tool for making locally-trusted development certificates" +arch=('x86_64') +url="https://github.com/FiloSottile/mkcert" +license=('BSD') +makedepends=('go' 'git') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/FiloSottile/${pkgname}/archive/v${pkgver}.tar.gz) +sha256sums=('c98bff8727354a5ba4071d5256577935f5c2fe672d1f33e49ffebd983eae2f10') + +prepare() { + cd "${srcdir}"/${pkgname}-${pkgver} + export GOPATH="${srcdir}" + install -d "${GOPATH}/src/github.com/FiloSottile" + cp -a "$PWD" "${GOPATH}/src/${_package}" +} + +build() { + cd "${GOPATH}/src/${_package}" + go build -asmflags "-trimpath $GOPATH/src" -gcflags "-trimpath $GOPATH/src" +} + +package() { + cd "${GOPATH}/src/${_package}" + install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |