Mail archive
alpine-aports

[alpine-aports] [PATCH] main/mercurial: Upgrade to 4.0.1. Slightly modernize APKBUILD.

From: Przemyslaw Pawelczyk <przemoc_at_zoho.com>
Date: Fri, 2 Dec 2016 12:17:13 +0100

---
 main/mercurial/APKBUILD | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/main/mercurial/APKBUILD b/main/mercurial/APKBUILD
index 750dee0fbb98..1126798b662b 100644
--- a/main/mercurial/APKBUILD
+++ b/main/mercurial/APKBUILD
_at_@ -1,7 +1,7 @@
 # Contributor: Sören Tempel <soeren+alpine_at_soeren-tempel.net>
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 pkgname=mercurial
-pkgver=3.9.1
+pkgver=4.0.1
 pkgrel=0
 pkgdesc="A scalable distributed SCM tool"
 url="https://www.mercurial-scm.org/"
_at_@ -16,14 +16,15 @@ subpackages="
 	$pkgname-bash-completion:bashcomp:noarch"
 source="https://www.mercurial-scm.org/release/$pkgname-$pkgver.tar.gz"
 
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$pkgver
+
 build() {
-	cd "$_builddir"
+	cd "$builddir"
 	python2 setup.py build || return 1
 }
 
 package() {
-	cd "$_builddir"
+	cd "$builddir"
 	python2 setup.py install --root="$pkgdir" || return 1
 	install -m755 contrib/hgk hgeditor "$pkgdir"/usr/bin || return 1
 
_at_@ -38,7 +39,7 @@ vim() {
 	pkgdesc="Vim syntax for $pkgname"
 	install_if="vim $pkgname=$pkgver-r$pkgrel"
 
-	cd "$_builddir"/contrib/vim/
+	cd "$builddir"/contrib/vim/
 	mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/syntax/
 	install -Dm644 HGAnnotate.vim hgtest.vim \
 		"$subpkgdir"/usr/share/vim/vimfiles/syntax/ || return 1
_at_@ -49,7 +50,7 @@ zshcomp() {
 	pkgdesc="Zsh completions for $pkgname"
 	install_if="$pkgname=$pkgver-r$pkgrel zsh"
 
-	install -Dm644 "$_builddir"/contrib/zsh_completion \
+	install -Dm644 "$builddir"/contrib/zsh_completion \
 		"$subpkgdir"/usr/share/zsh/site-functions/_${pkgname} || return 1
 }
 
_at_@ -58,10 +59,10 @@ bashcomp() {
 	pkgdesc="Bash completions for $pkgname"
 	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
 
-	install -Dm644 "$_builddir"/contrib/bash_completion \
+	install -Dm644 "$builddir"/contrib/bash_completion \
 		"$subpkgdir"/usr/share/bash-completion/completions/${pkgname} || return 1
 }
 
-md5sums="3759dd10edb8c1a6dfb8ff0ce82658ce  mercurial-3.9.1.tar.gz"
-sha256sums="625e4fc7e85ec2278c2828bdc547fce74091b3bbe4d9eeeba2d61af51195df74  mercurial-3.9.1.tar.gz"
-sha512sums="d96e45cafd36be692d6ce5259e18140641c24f73d4731ff767df0f39af425b0630c687436fc0f53d5882495ceacacaadd5e19f8f7c701b4b94c48631123b4666  mercurial-3.9.1.tar.gz"
+md5sums="22a9b1d7c0c06a53f0ae5b386d536d08  mercurial-4.0.1.tar.gz"
+sha256sums="6aa4ade93c1b5e11937820880a466ebf1c824086d443cd799fc46e2617250d40  mercurial-4.0.1.tar.gz"
+sha512sums="145bb80d5dbefb5b770a8d74ce31929fafbd235bb3f641bcaa54b1f5278b2abef4298025152aaba212f639c307741d3aaf75be83e3fc52eaf440c86e4a804459  mercurial-4.0.1.tar.gz"
-- 
2.8.3
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Dec 02 2016 - 12:17:13 GMT