summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/mercurial/APKBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/main/mercurial/APKBUILD b/main/mercurial/APKBUILD
index 3bce6d13cf..358eee4bdf 100644
--- a/main/mercurial/APKBUILD
+++ b/main/mercurial/APKBUILD
@@ -5,19 +5,20 @@ pkgrel=0
pkgdesc="A scalable distributed SCM tool"
url="http://www.selenic.com/mercurial"
arch="all"
-license="GPL"
-depends="python"
+license="GPL2+"
+depends=""
makedepends="python-dev"
subpackages="$pkgname-doc"
source="http://www.selenic.com/$pkgname/release/$pkgname-$pkgver.tar.gz"
+_builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$srcdir"/$pkgname-$pkgver
- python setup.py build
+ cd "$_builddir"
+ python setup.py build || return 1
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
python setup.py install --root="$pkgdir" || return 1
install -d "$pkgdir"/usr/share/man/man1 "$pkgdir"/usr/share/man/man5
install -m644 doc/hg.1 ""$pkgdir"/usr/share/man/man1" || return 1