diff options
author | Maxime Gauduin | 2015-06-08 11:11:21 +0200 |
---|---|---|
committer | Maxime Gauduin | 2015-06-08 11:11:21 +0200 |
commit | 86d072d9d90203692de50473235bcc970b042cf7 (patch) | |
tree | 8959294e6090c51501a0915b0c7da62727568771 | |
download | aur-86d072d9d90203692de50473235bcc970b042cf7.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | MKPKG | 5 | ||||
-rw-r--r-- | PKGBUILD | 68 |
3 files changed, 107 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a7b09e73c5e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +pkgbase = rbutil-git + pkgver = 1.4.0.r540.0f61e38 + pkgrel = 1 + url = http://www.rockbox.org/twiki/bin/view/Main/RockboxUtility + arch = i686 + arch = x86_64 + license = GPL + makedepends = gendesk + makedepends = git + makedepends = libusb + makedepends = qt5-base + makedepends = qt5-tools + makedepends = speex + source = rbutil::git://git.rockbox.org/rockbox + sha256sums = SKIP + +pkgname = rbutil-git + pkgdesc = Rockbox Utility + depends = libusb + depends = qt5-base + depends = speex + optdepends = espeak: TTS engine + optdepends = festival: TTS engine + optdepends = flite: TTS engine + optdepends = rbspeex-git: Generate voice/talk files from external sources + provides = rbutil + conflicts = rbutil + +pkgname = rbspeex-git + pkgdesc = Rockbox Speex Codec + depends = speex + provides = rbspeex + conflicts = rbspeex + diff --git a/MKPKG b/MKPKG new file mode 100644 index 000000000000..0c0aebc239c5 --- /dev/null +++ b/MKPKG @@ -0,0 +1,5 @@ +pkgname=('rbutil-git') + +check_git $packagedir/$pkgname/${pkgname%-*} + +# vim: ts=2 sw=2 et: diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3476ecaff90d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Maxime Gauduin <alucryd@archlinux.org> + +pkgbase=rbutil-git +pkgname=('rbutil-git' 'rbspeex-git') +pkgver=1.4.0.r540.0f61e38 +pkgrel=1 +arch=('i686' 'x86_64') +url='http://www.rockbox.org/twiki/bin/view/Main/RockboxUtility' +license=('GPL') +makedepends=('gendesk' 'git' 'libusb' 'qt5-base' 'qt5-tools' 'speex') +source=('rbutil::git://git.rockbox.org/rockbox') +sha256sums=('SKIP') + +pkgver() { + cd rbutil + + _tag='rbutil_1.4.0' + + printf "%s.r%s.%s" "${_tag#rbutil_}" "$(git rev-list --count ${_tag}..HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + gendesk -f -n --pkgname 'rbutil' --pkgdesc "${pkgdesc}" --name='Rockbox Utility' --exec='RockboxUtility' --categories='Application;Utility;' --comment='Rockbox automated installer' +} + +build() { + cd rbutil/rbutil/rbutilqt + + lrelease-qt5 rbutilqt.pro + qmake-qt5 + make + + cd ../../tools + + make -C rbspeex +} + +package_rbutil-git(){ + pkgdesc='Rockbox Utility' + depends=('libusb' 'qt5-base' 'speex') + optdepends=('espeak: TTS engine' + 'festival: TTS engine' + 'flite: TTS engine' + 'rbspeex-git: Generate voice/talk files from external sources') + provides=('rbutil') + conflicts=('rbutil') + + cd rbutil/rbutil/rbutilqt + + install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,pixmaps}} + install -m 755 RockboxUtility "${pkgdir}"/usr/bin/ + install -m 644 icons/rockbox-64.png "${pkgdir}"/usr/share/pixmaps/rbutil.png + install -m 644 ../../../rbutil.desktop "${pkgdir}"/usr/share/applications/ +} + +package_rbspeex-git(){ + pkgdesc='Rockbox Speex Codec' + depends=('speex') + provides=('rbspeex') + conflicts=('rbspeex') + + cd rbutil/tools + + install -dm 755 "${pkgdir}"/usr/bin + install -m 755 rbspeex{dec,enc} "${pkgdir}"/usr/bin/ +} + +# vim: ts=2 sw=2 et: |