diff options
author | Daniel Martí | 2016-09-08 16:29:12 +0200 |
---|---|---|
committer | Daniel Martí | 2016-09-08 16:34:57 +0200 |
commit | b9e24277fc8e60ad31ccf42d6e940585d159ccd4 (patch) | |
tree | b842ca057535042100e50feab211ec8a452624cb | |
download | aur-b9e24277fc8e60ad31ccf42d6e940585d159ccd4.tar.gz |
First upload
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..64daf01e06b9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Thu Sep 8 14:34:33 UTC 2016 +pkgbase = shfmt + pkgdesc = Format shell programs + pkgver = 20160908 + pkgrel = 1 + url = https://github.com/mvdan/sh + arch = i686 + arch = x86_64 + license = BSD + makedepends = git + makedepends = go + options = !strip + source = git+https://github.com/mvdan/sh + sha1sums = SKIP + +pkgname = shfmt + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..be09a02a4c71 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Daniel Martí <mvdan@mvdan.cc> + +pkgname=shfmt +_pkg=sh +_name="${pkgname}" +pkgver=20160908 +pkgrel=1 +pkgdesc="Format shell programs" +url="https://github.com/mvdan/${_pkg}" +license=('BSD') +arch=('i686' 'x86_64') +makedepends=('git' 'go') +options=('!strip') +source=("git+${url}") +sha1sums=('SKIP') + +prepare() { + cd "${srcdir}" + mkdir -p "src/github.com/mvdan" + mv "${_pkg}" "src/github.com/mvdan/${_pkg}" +} + +build() { + cd "${srcdir}/src/github.com/mvdan/${_pkg}/cmd/${_name}" + GOPATH="${srcdir}" go build +} + +package() { + cd "${srcdir}/src/github.com/mvdan/${_pkg}" + install -Dm755 "cmd/${_name}/${_name}" "${pkgdir}/usr/bin/${_name}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |