Skip to content

Instantly share code, notes, and snippets.

@lsfxz

lsfxz/PKGBUILD Secret

Created September 22, 2017 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsfxz/e9accb3443d38222e2e922182757a984 to your computer and use it in GitHub Desktop.
Save lsfxz/e9accb3443d38222e2e922182757a984 to your computer and use it in GitHub Desktop.
PKGBUILD for simon-kf5-git
# 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