summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Merejkowsky2015-07-17 11:29:12 +0200
committerDimitri Merejkowsky2015-07-17 11:29:12 +0200
commitedcaf1020188e6a2256bbe255a09d419f3b9db02 (patch)
treee3dcd7c94807f3948c6f19ee9bb5e3c8f5d561c8
downloadaur-edcaf1020188e6a2256bbe255a09d419f3b9db02.tar.gz
initial import
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD59
2 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6eab761e3c2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = qibuild
+ pkgdesc = The meta build framework
+ pkgver = 3.8
+ pkgrel = 2
+ url = https://community.aldebaran-robotics.com/doc/qibuild/
+ arch = any
+ license = BSD
+ makedepends = python2
+ makedepends = python2-docutils
+ depends = python2
+ depends = cmake
+ optdepends = git: for qisrc
+ optdepends = python2-sphinx: Sphinx support in qidoc
+ optdepends = python2-virtualenv: for qipy
+ optdepends = doxygen: Doxygen support in qidoc
+ optdepends = gettext: Gettext support in qilinguist
+ optdepends = qt5-tool: QtLinguist support in qilinguist
+ source = https://pypi.python.org/packages/source/q/qibuild/qibuild-3.8.tar.gz
+ md5sums = c8448fe063cc9a7b444a0ca6738e9741
+
+pkgname = qibuild
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..101f343f68a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Dimitri Merejkowsky <d.merej@gmail.com>
+pkgname=qibuild
+pkgver='3.8'
+pkgrel='2'
+pkgdesc='The meta build framework'
+arch=('any')
+url='https://community.aldebaran-robotics.com/doc/qibuild/'
+license=('BSD')
+depends=('python2' 'cmake')
+optdepends=(
+ 'git: for qisrc'
+ 'python2-sphinx: Sphinx support in qidoc'
+ 'python2-virtualenv: for qipy'
+ 'doxygen: Doxygen support in qidoc'
+ 'gettext: Gettext support in qilinguist'
+ 'qt5-tool: QtLinguist support in qilinguist'
+)
+makedepends=('python2' 'python2-docutils')
+
+source=("https://pypi.python.org/packages/source/q/qibuild/qibuild-${pkgver}.tar.gz")
+md5sums=('c8448fe063cc9a7b444a0ca6738e9741')
+
+
+build() {
+ # build python:
+ cd ${pkgname}-${pkgver}
+ python2 setup.py build
+
+ # build man pages
+ cd doc/source/man
+ for f in *.rst ; do
+ rst2man2 ${f} $(basename $f .rst).1
+ done
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ # python
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+
+ # license
+ mkdir -p "${pkgdir}/usr/share/licenses/qibuild"
+ install -m 644 COPYING "${pkgdir}/usr/share/licenses/qibuild"
+
+ # qicd
+ mkdir -p "${pkgdir}/etc/profile.d"
+ sed -i 's!python!/usr/bin/python2!g' etc/qibuild.sh
+ install -m 755 etc/qibuild.sh ${pkgdir}/etc/profile.d/
+
+ # man pages
+ mkdir -p "${pkgdir}/usr/share/man/man1"
+ cd doc/source/man
+ for f in *.1 ; do
+ install $f "${pkgdir}/usr/share/man/man1"
+ done
+}
+
+# vim:set ts=2 sw=2 et: