blob: 72ed393ff4bacb3a9e09171d47f1139845a7db63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Bjoern Franke <bjo@nord-west.org>
pkgname=mycroft-core
# _pkgcommit=eb0a37c # Used only when the latest tag is not working
# pkgver=0.7.20.${_pkgcommit}
pkgver=0.9.12
pkgrel=2
pkgdesc="Mycroft Core, the Mycroft Artificial Intelligence platform. Contribute to this package at: https://gitlab.com/rafamanzo/aur-mycroft-core"
arch=('i686' 'x86_64')
url='https://github.com/MycroftAI/mycroft-core'
license=('GPLv3')
depends=('git'
'python2'
'python2-virtualenv'
'python2-setuptools'
'python2-gobject2'
'python-virtualenvwrapper'
'libtool'
'libffi'
'openssh'
'autoconf'
'bison'
'swig'
'glib2'
's3cmd'
'portaudio'
'mpg123'
'flac'
'curl'
'mimic'
'alsa-utils')
makedepends=('sudo')
optdepends=()
conflicts=()
install=mycroft-core.install
# changelog=ChangeLog
source=("https://codeload.github.com/MycroftAI/mycroft-core/tar.gz/release/v${pkgver}"
#source=("git://github.com/MycroftAI/mycroft-core.git#commit=${_pkgcommit}" # Used only when the latest tag is not working
"mycroft.target"
"mycroft-service.service"
"mycroft-skills.service"
"mycroft-voice.service")
sha512sums=('c7c2580fbeb7fd43d5ffc2055f56063a3bc2c24a94adfb254a12d64b613aff36104209c2843235b61d00fca87e865a25a14aa9e5a0e5f93557abb1121ef86de5'
'a5989c9ff2b0f7338b4a6f9342c980413d71da375355abb416dce3a79e298fea7872e39b6a1505437aab860ed66755a6f344821f4f7cb31aed46792b2cef3f96'
'74e9451dc38560e6efd4baf8c77cb81bdf9c0b821c1935eb2dac060614c0f14458101151583c3f444da59d9f065a744a7ad6f8daaeceec8f4e37f67d33199b6b'
'cb8a5c2245ecd52e66acedebf7ce6ce8db32a84b3495d34cc3749e03aa7d12c958b5f71fa01aa79b36906401e655dd6442e979d60d53d64160d9f956551a92df'
'7266494bf416a6f969bcbe9e854753e2a7e498ff9b43d6ca0ba37d94736bca9bf35f5825f24e19138428728189814222f2592fdea4c7e1d0d0ad18e7d3606a0b')
package() {
mkdir -p ${pkgdir}/usr/share/
# cp -R mycroft-core ${pkgdir}/usr/share/ # Used only when the latest tag is not working
cp -R mycroft-core-release-v${pkgver} ${pkgdir}/usr/share/mycroft-core
# Place a link to mimic where mycroft is expecting it
mkdir -p ${pkgdir}/usr/share/mycroft-core/mimic/bin
ln -s /usr/bin/mimic ${pkgdir}/usr/share/mycroft-core/mimic/bin/mimic
# Set permissions
chmod g+w ${pkgdir}/usr/share/mycroft-core
# Symtemd units
install -D -m644 "${srcdir}/mycroft.target" "${pkgdir}/usr/lib/systemd/user/mycroft.target"
install -D -m644 "${srcdir}/mycroft-service.service" "${pkgdir}/usr/lib/systemd/user/mycroft-service.service"
install -D -m644 "${srcdir}/mycroft-skills.service" "${pkgdir}/usr/lib/systemd/user/mycroft-skills.service"
install -D -m644 "${srcdir}/mycroft-voice.service" "${pkgdir}/usr/lib/systemd/user/mycroft-voice.service"
}
|