summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedroHLC2019-12-25 15:10:22 +0100
committerPedroHLC2019-12-25 15:10:22 +0100
commitbd406fcd734b1a2ec76a9138b3ab52935dd48058 (patch)
treea88a15783e5516aef1ce39e56c56a06d8d2ce625
downloadaur-bd406fcd734b1a2ec76a9138b3ab52935dd48058.tar.gz
Initial idea
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD54
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9fbc49b405a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = repoctl-devel-git
+ pkgdesc = A supplement to repo-add and repo-remove which simplifies managing local repositories (devel branch from git)
+ pkgver = 0.19
+ pkgrel = 0
+ url = https://github.com/cassava/repoctl
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ license = MIT
+ makedepends = go
+ makedepends = git
+ depends = pacman
+ options = !strip
+ source = repoctl-devel-git::git+https://github.com/cassava/repoctl.git#branch=devel
+ md5sums = SKIP
+
+pkgname = repoctl-devel-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..90ad1f565e6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Pedro H Lara Campos <root@pedrohlc.com>
+# Contributor: Alad Wenter <alad@mailbox.org>
+# Contributor: Ben Morgan <neembi@gmail.com>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+pkgname=repoctl-devel-git
+pkgver=0.19
+pkgrel=0
+pkgdesc="A supplement to repo-add and repo-remove which simplifies managing local repositories (devel branch from git)"
+arch=('i686' 'x86_64' 'armv7h')
+url="https://github.com/cassava/repoctl"
+license=('MIT')
+depends=('pacman')
+makedepends=('go' 'git')
+options=('!strip')
+source=("$pkgname::git+https://github.com/cassava/repoctl.git#branch=devel")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --tags --long | sed 's/^v//; s/-/.r/; s/-/./g'
+}
+
+prepare() {
+ dest="$srcdir/src/github.com/cassava"
+ mkdir -p "$dest"
+ mv "$srcdir/$pkgname" "$dest/repoctl"
+ cd "$srcdir"
+ ln -s "$dest/repoctl" "$pkgname-$pkgver"
+}
+
+build() {
+ src="$srcdir/src/github.com/cassava/repoctl"
+ cd "$src/cmd/repoctl"
+ GOPATH="$srcdir" go build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ # Install repoctl program
+ install -d "$pkgdir/usr/bin"
+ install -m755 cmd/repoctl/repoctl "$pkgdir/usr/bin/"
+
+ # Install other documentation
+ install -d "$pkgdir/usr/share/doc/repoctl"
+ install -m644 README.md NEWS.md "$pkgdir/usr/share/doc/repoctl/"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/repoctl/LICENSE"
+
+ # Install completion files
+ install -Dm644 contrib/repoctl_completion.zsh "$pkgdir/usr/share/zsh/site-functions/_repoctl"
+ install -Dm644 contrib/repoctl_completion.bash "$pkgdir/usr/share/bash-completion/completions/repoctl"
+}
+
+# vim: set ts=2 sw=2: \ No newline at end of file