summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorImNtReal2016-07-12 14:00:21 -0400
committerImNtReal2016-07-12 14:00:21 -0400
commit1f5f9caafe8bd05405035aa3c4dc99ef4a4b7ebc (patch)
tree7759869decb40ba8ce548e93ed0638c59b340e1f
parent92216f120ab16ac84ea7645eecb0eafa33e52b84 (diff)
downloadaur-1f5f9caafe8bd05405035aa3c4dc99ef4a4b7ebc.tar.gz
creating split package
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD74
2 files changed, 84 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d4dfa22c0f8..b7e4a785c05 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Sat Jul 9 23:25:35 UTC 2016
+# Tue Jul 12 18:00:07 UTC 2016
pkgbase = python-pocketsphinx-git
pkgdesc = Python interface to CMU SphinxBase and PocketSphinx libraries
pkgver = r68.24ab446
@@ -16,3 +16,14 @@ pkgbase = python-pocketsphinx-git
pkgname = python-pocketsphinx-git
+pkgname = python2-pocketsphinx-git
+
+pkgname = sphinxbase-git
+ provides = sphinxbase
+ conflicts = sphinxbase
+
+pkgname = pocketsphinx-git
+ depends = sphinxbase
+ provides = pocketsphinx
+ conflicts = procketsphinx
+
diff --git a/PKGBUILD b/PKGBUILD
index 21523301c17..d3302f51e16 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,8 @@
# Maintainer: Jameson Pugh <imntreal@gmail.com>
pkgname=python-pocketsphinx-git
+pkgbase=python-pocketsphinx-git
+pkgname=('python-pocketsphinx-git' 'python2-pocketsphinx-git' 'sphinxbase-git' 'pocketsphinx-git')
pkgver=r68.24ab446
pkgrel=1
pkgdesc='Python interface to CMU SphinxBase and PocketSphinx libraries'
@@ -24,17 +26,85 @@ prepare() {
# Should I do a status before init?
git submodule init
git submodule update
+
+ cd "${srcdir}"
+ cp -rf "${_gitname}" python2-pocketsphinx-git
}
build() {
- cd "${srcdir}/${_gitname}"
+ cd "${srcdir}/${_gitname}/sphinxbase"
+ ./autogen.sh --prefix=/usr
+ make
+
+ cd "${srcdir}/${_gitname}/pocketsphinx"
+ ./autogen.sh --prefix=/usr
+ make
+ cd "${srcdir}/${_gitname}"
python setup.py build
+
+ export PYTHON=/usr/bin/python2
+
+ cd "${srcdir}/python2-pocketsphinx-git/sphinxbase"
+ ./autogen.sh --prefix=/usr --libdir=/garbage --bindir=/garbage --includedir=/garbage --datarootdir=/garbage
+ make
+
+ cd "${srcdir}/python2-pocketsphinx-git/pocketsphinx"
+ ./autogen.sh --prefix=/usr --libdir=/garbage --bindir=/garbage --includedir=/garbage --datarootdir=/garbage
+ make
+
+ cd "${srcdir}/python2-pocketsphinx-git"
+ python2 setup.py build
+}
+
+package_sphinxbase-git() {
+ provides=('sphinxbase')
+ conflicts=('sphinxbase')
+
+ cd "${srcdir}/${_gitname}/sphinxbase"
+
+ export PYTHON=/usr/bin/python
+ make DESTDIR="${pkgdir}/" install
+ rm -f "${pkgdir}/usr/lib/python3.5/site-packages/sphinxbase/__init__.py"
+ rm -f "${pkgdir}/usr/lib/python3.5/site-packages/sphinxbase/sphinxbase.py"
+ rm -rf "${pkgdir}/usr/lib/python3.5/site-packages/sphinxbase/__pycache__"
}
-package() {
+
+package_pocketsphinx-git() {
+ provides=('pocketsphinx')
+ conflicts=('procketsphinx')
+ depends=('sphinxbase')
+
+ cd "${srcdir}/${_gitname}/pocketsphinx"
+
+ export PYTHON=/usr/bin/python
+ make DESTDIR="${pkgdir}/" install
+ rm -f "${pkgdir}/usr/lib/python3.5/site-packages/pocketsphinx/__init__.py"
+ rm -f "${pkgdir}/usr/lib/python3.5/site-packages/pocketsphinx/pocketsphinx.py"
+ rm -rf "${pkgdir}/usr/lib/python3.5/site-packages/pocketsphinx/__pycache__"
+}
+
+package_python-pocketsphinx-git() {
cd "${srcdir}/${_gitname}"
+ export PYTHON=/usr/bin/python
python setup.py install --root="${pkgdir}/" --optimize=1
}
+package_python2-pocketsphinx-git() {
+ export PYTHON=/usr/bin/python2
+
+ cd "${srcdir}/python2-pocketsphinx-git/sphinxbase"
+ make DESTDIR="${pkgdir}/" install
+
+ cd "${srcdir}/python2-pocketsphinx-git/pocketsphinx"
+ make DESTDIR="${pkgdir}/" install
+
+ cd "${srcdir}/python2-pocketsphinx-git"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+ msg "Removing files provided by sphinxbase and pocketsphinx"
+ rm -rf "${pkgdir}/garbage"
+}
+
# vim: set ts=2 sw=2 ft=sh noet: