summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedroHLC2020-01-03 10:05:54 +0100
committerPedroHLC2020-01-03 10:05:54 +0100
commitc0fa7dd7768d1170ee98c3b728c6468ccced62ae (patch)
tree159bdf4c2834b3a71209d7c2c4d368a9cf6d53b9
parent5ee4f73ba335fdea59c80d4a1d57318920e627f9 (diff)
downloadaur-c0fa7dd7768d1170ee98c3b728c6468ccced62ae.tar.gz
Changes recommended in https://aur.archlinux.org/packages/repoctl-devel-git#comment-722828
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD15
2 files changed, 10 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3cfa1e9b09b..eb336c0df4c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +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
+ pkgver = 0.18.r16.g717a4e1
+ pkgrel = 1
url = https://github.com/cassava/repoctl
arch = i686
arch = x86_64
arch = armv7h
license = MIT
- makedepends = go
+ makedepends = go-pie
makedepends = git
depends = pacman
provides = repoctl
conflicts = repoctl
conflicts = repoctl-git
- options = !strip
source = repoctl::git+https://github.com/cassava/repoctl.git#branch=devel
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index ad8d691874d..054a3f40d9a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,24 @@
# Maintainer: Pedro H Lara Campos <root@pedrohlc.com>
+# Contributor: Mark Wagie <mark.wagie@tutanota.com>
# Contributor: Alad Wenter <alad@mailbox.org>
# Contributor: Ben Morgan <neembi@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
_pkgname=repoctl
pkgname="${_pkgname}-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')
+makedepends=('go-pie' 'git')
+options=()
source=("${_pkgname}::git+https://github.com/cassava/repoctl.git#branch=devel")
md5sums=('SKIP')
provides=('repoctl')
conflicts=('repoctl' 'repoctl-git')
+pkgver=0.18.r16.g717a4e1
+pkgrel=1
pkgver() {
cd "${_pkgname}"
git describe --tags --long | sed 's/^v//; s/-/.r/; s/-/./g'
@@ -26,15 +27,13 @@ pkgver() {
prepare() {
dest="$srcdir/src/github.com/cassava"
mkdir -p "$dest"
- mv "$srcdir/${_pkgname}" "$dest/repoctl"
- cd "$srcdir"
- ln -s "$dest/repoctl" "${_pkgname}"
+ ln -rTsf "$srcdir/${_pkgname}" "$dest/repoctl"
}
build() {
src="$srcdir/src/github.com/cassava/repoctl"
cd "$src/cmd/repoctl"
- GOPATH="$srcdir" go build
+ GOPATH="$srcdir" go build -trimpath -ldflags "-extldflags ${LDFLAGS}" .
}
package() {