blob: 22b07218ce008baa9a5e11c4235497c43d9d2e7c (
plain)
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
35
36
37
38
39
40
41
|
# Maintainer: Stefan Seemayer <mail@semicolonsoftware.de>
pkgname=python2-pysvmlight-hg
pkgver=20130415
pkgrel=1
pkgdesc="A Python binding to the SVMlight support vector machine library by Thorsten Joachims"
arch=("i686" "x86_64")
url="https://bitbucket.org/wcauchois/pysvmlight"
license=('unknown')
makedepends=('mercurial')
depends=('python2')
_hgroot=ssh://hg@bitbucket.org/wcauchois/pysvmlight
_hgrepo=pysvmlight
build() {
cd "$srcdir"
msg "Connecting to Mercurial server...."
if [[ -d "$_hgrepo" ]]; then
cd "$_hgrepo"
hg pull -u
msg "The local files are updated."
else
hg clone "$_hgroot" "$_hgrepo"
fi
msg "Mercurial checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_hgrepo-build"
cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
cd "$srcdir/$_hgrepo-build"
}
package() {
cd "$srcdir/$_hgrepo-build"
python2 setup.py install --root="$pkgdir/" --optimize=1
}
# vim:set ts=2 sw=2 et:
|