blob: 7d55f54d20014c4287e9f627a0f7e58a2d933ada (
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
|
# Maintainer: zoe <chp321 [at] gmail.com>
# Contributor: Étienne Deparis <etienne [at] depar.is>
pkgname=galileo-dev
pkgver=0.5.1.r128.g1f62d5d
pkgrel=1
pkgdesc='Utility to securely synchronize a Fitbit tracker with the Fitbit server. Development version, which supports synchronization without dongle, through bluetooth (experimental)'
license=('LGPL3')
url='https://github.com/benallard/galileo'
depends=('python-pyusb' 'python-requests' 'python-pydbus')
makedepends=('git' 'python-setuptools')
conflicts=('galileo')
source=("$pkgname::git+https://github.com/benallard/galileo.git")
md5sums=('SKIP')
arch=('any')
options=(!emptydirs)
backup=("etc/galileo/config")
install=galileo.install
pkgver() {
cd "$srcdir/$pkgname"
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $srcdir/$pkgname
sed -i 's/logging: verbose/logging: quiet # quiet is default/' galileorc.sample
sed -i "26,35s/^\(.*\)$/\#\1/" galileorc.sample
sed -i "s|/etc/galileorc|/etc/galileo/config|" contrib/galileo.service
sed -i "s|README.txt|README.rst|" setup.py
}
package(){
cd $srcdir/$pkgname
python setup.py install --root=$pkgdir
install -d -m755 $pkgdir/etc/{udev/rules.d, $pkgname}
install -d -m755 $pkgdir/usr/share/{man/man1, man/man5, doc/$pkgname}
install -D -m644 99-fitbit.rules $pkgdir/etc/udev/rules.d/99-fitbit.rules
install -D -m644 doc/galileo.1 $pkgdir/usr/share/man/man1/galileo.1
install -D -m644 doc/galileorc.5 $pkgdir/usr/share/man/man5/galileorc.5
install -D -m644 galileorc.sample $pkgdir/etc/$pkgname/config
install -D -m644 contrib/galileo.service $pkgdir/usr/lib/systemd/user/galileo.service
install -D -m644 CHANGES $pkgdir/usr/share/doc/$pkgname/CHANGES
install -D -m644 README.rst $pkgdir/usr/share/doc/$pkgname/README
}
|