blob: 121556c16ae9390db0c3b6bf02fa66f9f63fcdce (
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
42
43
44
45
|
# Maintainer: Nikos Skalkoto <skalkoto_at_gmail.com>
pkgname=pyparted-git
pkgver=$(date -u +%Y%m%d%H%M)
pkgrel=1
pkgdesc="Python bindings for libparted"
arch=('any')
url="https://github.com/rhinstaller/pyparted"
license=('GPL2')
depends=('python2' 'parted')
conflicts=('pyparted')
provides=('pyparted')
makedepends=('git')
_gitroot="https://github.com/rhinstaller/pyparted.git"
_gitname="pyparted"
build() {
cd "${srcdir}"
msg "Connecting to githug.com server...."
if [ -d "${srcdir}"/${_gitname} ] ; then
cd ${_gitname}
git pull origin
msg "The local files are updated..."
else
git clone ${_gitroot}
fi
msg "GIT checkout done."
if [ -d "${srcdir}"/${_gitname}-build ]; then
msg "Cleaning the previous build directory..."
rm -rf "${srcdir}"/${_gitname}-build
fi
git clone "${srcdir}"/${_gitname} "${srcdir}"/${_gitname}-build
cd "${srcdir}"/${_gitname}-build
python2 setup.py build
}
package() {
cd "${srcdir}"/${_gitname}-build
python2 setup.py install --prefix=/usr --root="${pkgdir}"
}
|