summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikos Skalkotos2015-06-16 11:02:28 +0000
committerNikos Skalkotos2015-06-16 11:02:28 +0000
commit34e2c4a8ccfe5f06c7d5a536b7de0831c2d5f30b (patch)
tree32cb75fbd3e9c804ddc74314b5ea6dd922dcb8ec
downloadaur-34e2c4a8ccfe5f06c7d5a536b7de0831c2d5f30b.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD45
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0c84eaa1335
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = pyparted-git
+ pkgdesc = Python bindings for libparted
+ pkgver = 201506161101
+ pkgrel = 1
+ url = https://github.com/rhinstaller/pyparted
+ arch = any
+ license = GPL2
+ makedepends = git
+ depends = python2
+ depends = parted
+ provides = pyparted
+ conflicts = pyparted
+
+pkgname = pyparted-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..121556c16ae
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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}"
+}