-
-
Save lsfxz/e9accb3443d38222e2e922182757a984 to your computer and use it in GitHub Desktop.
PKGBUILD for simon-kf5-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Matteo Triggiani <davvore33@gmail.com> | |
pkgname=('simon-kf5-git') | |
pkgver=3241.bde86df4 | |
pkgrel=2 | |
pkgdesc="Simon is an open source speech recognition program that can replace your mouse and keyboard. The system is designed to be as flexible as possible and will work with any language or dialect" | |
arch=('i686' 'x86_64') | |
url="https://simon.kde.org/" | |
license=('GPL2') | |
depends=('kdesignerplugin' 'qwt' 'hicolor-icon-theme' 'knewstuff' 'kcmutils' 'kdelibs4support' ) | |
makedepends=('cmake' 'git' 'kdoctools' 'plasma-framework' 'khtml' 'kdelibs' 'extra-cmake-modules') | |
optdepends=('pocketsphinx: speech recognition engine' | |
'htk: create and modify the speech models' | |
'julius: for speech recognition') | |
conflicts=('simon') | |
md5sums=('SKIP') | |
_gitroot='https://github.com/KDE' | |
_gitname='simon' | |
_gitbranch='kf5' | |
source=("$_gitname"::git+"$_gitroot"/"$_gitname".git\#branch="$_gitbranch") | |
pkgver() { | |
cd "${srcdir}/${_gitname}" | |
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) | |
} | |
prepare(){ | |
cd "${srcdir}/${_gitname}" | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` | |
} | |
build() { | |
cd "${srcdir}/${_gitname}/build" | |
make | |
} | |
package() { | |
cd "${srcdir}/${_gitname}/build" | |
make install DESTDIR="${pkgdir}" | |
ldconfig -r "${pkgdir}" | |
mv "${pkgdir}/usr/lib64" "${pkgdir}/usr/lib" | |
kbuildsycoca4 | |
rm -rf "${pkgdir}/etc/ld.so.cache" | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment