diff options
author | Ben Morgan | 2015-07-19 11:30:38 +0200 |
---|---|---|
committer | Ben Morgan | 2015-07-19 11:30:38 +0200 |
commit | a7ec3f5f7b8c447a6fcf347c4e757fc5c5cdf4b0 (patch) | |
tree | 84e40decf7b3278644778e4bcc3e2dd2859e2982 | |
download | aur-a7ec3f5f7b8c447a6fcf347c4e757fc5c5cdf4b0.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 43 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fa542cb53fc6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = repoctl + pkgdesc = A supplement to repo-add and repo-remove which simplifies managing local repositories + pkgver = 0.13 + pkgrel = 2 + url = https://github.com/cassava/repoctl + arch = i686 + arch = x86_64 + arch = armv7h + license = MIT + makedepends = go + depends = pacman + options = !strip + source = https://github.com/cassava/repoctl/releases/download/v0.13/repoctl-0.13.tar.gz + +pkgname = repoctl + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..449437790f61 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +repoctl* +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6973262eb9ae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Ben Morgan <neembi@gmail.com> +# vim: set ts=2 sw=2: +pkgname=repoctl +pkgver=0.13 +pkgrel=1 +pkgdesc="A supplement to repo-add and repo-remove which simplifies managing local repositories" +arch=('i686' 'x86_64' 'armv7h') +url="https://github.com/cassava/repoctl" +license=('MIT') +depends=('pacman') +makedepends=('go') +options=('!strip') +source=(https://github.com/cassava/repoctl/releases/download/v0.13/repoctl-0.13.tar.gz) +md5sums=('4f218f588e21fc955801a82ed837e5c6') + +build() { + # Get and build the builder. + gopath=${srcdir}/go + if [[ -d ${gopath} ]]; then + rm -rf ${gopath} + fi + mkdir ${gopath} + GOPATH=${gopath} go get github.com/constabulary/gb/... + + cd ${srcdir}/${pkgname}-${pkgver} + ${gopath}/bin/gb build +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + # Install repoctl program + mkdir -p ${pkgdir}/usr/bin + install -m755 bin/repoctl ${pkgdir}/usr/bin/ + + # Install other documentation + mkdir -p ${pkgdir}/usr/share/doc/repoctl + install -m644 TODO.md README.md NEWS.md ${pkgdir}/usr/share/doc/repoctl/ + + # Install completion files + mkdir -p ${pkgdir}/usr/share/zsh/site-functions/ + install -m644 contrib/zsh_completion ${pkgdir}/usr/share/zsh/site-functions/_repoctl +} |