diff options
author | Martchus | 2021-09-10 17:04:05 +0200 |
---|---|---|
committer | Martchus | 2021-09-10 17:04:05 +0200 |
commit | 1dbc6ce99498d70e37ed85438e34b48e090e214e (patch) | |
tree | 58291526a81a7a4303a84a5af14d6639afcbb550 | |
parent | 72f7c04224932783170840f602837042e3e999af (diff) | |
download | aur-1dbc6ce99498d70e37ed85438e34b48e090e214e.tar.gz |
Drop Python 2
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 11 insertions, 29 deletions
@@ -1,13 +1,12 @@ pkgbase = pocketsphinx - pkgdesc = Lightweight speech recognition engine, specifically tuned for handheld and mobile devices, though it works equally well on the desktop. + pkgdesc = Lightweight speech recognition engine pkgver = 5prealpha - pkgrel = 10 + pkgrel = 12 url = http://cmusphinx.sourceforge.net arch = i686 arch = x86_64 license = BSD makedepends = swig - makedepends = python2 makedepends = python depends = sphinxbase=5prealpha depends = gst-plugins-base-libs @@ -16,4 +15,3 @@ pkgbase = pocketsphinx sha256sums = ef5bb5547e2712bdf571f256490ef42a47962033892efd9d7df8eed7fe573ed9 pkgname = pocketsphinx - @@ -1,15 +1,15 @@ -# Maintainer: Marco Pompili <aur AT emarcs DOT org> +# Maintainer: Martchus <martchus@gmx.net> +# Contributor: Marco Pompili <aur AT emarcs DOT org> # Contributor: Ben Duffield <bavardage AT archlinux.us> -# Contributor: Martchus <martchus@gmx.net> pkgname=pocketsphinx pkgver=5prealpha -pkgrel=10 -pkgdesc='Lightweight speech recognition engine, specifically tuned for handheld and mobile devices, though it works equally well on the desktop.' +pkgrel=12 +pkgdesc='Lightweight speech recognition engine' arch=('i686' 'x86_64') url='http://cmusphinx.sourceforge.net' license=('BSD') -makedepends=('swig' 'python2' 'python') +makedepends=('swig' 'python') depends=('sphinxbase=5prealpha' 'gst-plugins-base-libs') source=("http://downloads.sourceforge.net/cmusphinx/$pkgname-$pkgver.tar.gz") sha256sums=('ef5bb5547e2712bdf571f256490ef42a47962033892efd9d7df8eed7fe573ed9') @@ -20,37 +20,21 @@ prepare() { msg2 "Reconfiguring project for current version of Automake" autoreconf -ivf > /dev/null - - cd .. - - cp -R "$pkgname-$pkgver" "$pkgname-$pkgver-py2" - cp -R "$pkgname-$pkgver" "$pkgname-$pkgver-py3" } build() { + cd "$pkgname-$pkgver" - msg2 "Building python3 environment" export PYTHON=/usr/bin/python - cd "$pkgname-$pkgver-py3" ./configure --prefix=/usr make - - - msg2 "Building python2 environment" - cd "../$pkgname-$pkgver-py2" - export PYTHON=/usr/bin/python2 - ./configure --prefix=/usr - make } package() { - cd "$pkgname-$pkgver-py3" - - make DESTDIR="$pkgdir" install + cd "$pkgname-$pkgver" - cd "../$pkgname-$pkgver-py2/swig" make DESTDIR="$pkgdir" install - install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}" - install -D -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -D -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |