-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
34 lines (30 loc) · 1.18 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Zeph <[email protected]>
pkgname=python2-pysvn
pkgver=1.9.3
pkgrel=1
pkgdesc="Python2 SVN Extension."
arch=('any')
url="http://pysvn.tigris.org"
license=('APACHE')
depends=('python2>=2.7' 'subversion' 'apr' 'expat' 'neon' 'openssl')
conflicts=('pysvn<=1.7.4-3' 'pysvn-py2')
replaces=('pysvn-py2')
provides=('pysvn-py2')
source=("http://pysvn.barrys-emacs.org/source_kits/pysvn-$pkgver.tar.gz" )
md5sums=('03bdded9f168ad80c9f7cbb73a07dd80')
build() {
cd $srcdir/pysvn-$pkgver/Import/pycxx-6.2.8
python2 setup_makefile.py linux linux.mak
make -f linux.mak
cd $srcdir/pysvn-$pkgver/Source
sed -i -e "s|self.find_pycxx()|'$srcdir/pysvn-$pkgver/Import/pycxx-6.2.8/'|g" setup_configure.py
sed -i -e "s|'../Import/pycxx-%d.%d.%d' % pycxx_version|'../Import/pycxx-6.2.8/'|g" setup_configure.py
python2 setup.py configure || return 1
make || return 1
}
package() {
_pyver=`python2 -V 2>&1|sed -e 's/.* 2\.\([0-9]\).*/\1/'`
cd $srcdir/pysvn-$pkgver/Source
install -D -m644 pysvn/__init__.py $pkgdir/usr/lib/python2.${_pyver}/site-packages/pysvn/__init__.py
install -D -m755 pysvn/_pysvn_2_${_pyver}.so $pkgdir/usr/lib/python2.${_pyver}/site-packages/pysvn/_pysvn_2_${_pyver}.so
}