[arch-commits] Commit in mercurial/trunk (PKGBUILD)
Giovanni Scafora
giovanni at archlinux.org
Mon Jul 11 12:44:25 UTC 2011
Date: Monday, July 11, 2011 @ 08:44:25
Author: giovanni
Revision: 131160
upgpkg: mercurial 1.9-2
Fixed FS24950
Modified:
mercurial/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-07-11 12:44:21 UTC (rev 131159)
+++ PKGBUILD 2011-07-11 12:44:25 UTC (rev 131160)
@@ -4,19 +4,20 @@
pkgname=mercurial
pkgver=1.9
-pkgrel=1
+pkgrel=2
pkgdesc="A scalable distributed SCM tool"
arch=('i686' 'x86_64')
url="http://www.selenic.com/mercurial"
license=('GPL')
depends=('python2')
optdepends=('tk: for the hgk GUI')
+backup=('etc/mercurial/hgrc')
source=(http://www.selenic.com/mercurial/release/${pkgname}-${pkgver}.tar.gz
mercurial.profile)
md5sums=('d4842129fa2732eb6ed1180467bc32e2'
'43e1d36564d4c7fbe9a091d3ea370a44')
-build() {
+package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --root="${pkgdir}/" --optimize=1
@@ -38,4 +39,8 @@
# set some variables
install -m755 -d ${pkgdir}/etc/profile.d
install -m755 ${srcdir}/mercurial.profile "${pkgdir}/etc/profile.d/mercurial.sh"
+
+ # install configuration file
+ install -m755 -d ${pkgdir}/etc/mercurial
+ install -m644 contrib/sample.hgrc "${pkgdir}/etc/mercurial/hgrc"
}
More information about the arch-commits
mailing list