blob: 8bc21a44ab99881139ae831c1f06d6afe9c95698 (
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
|
# Maintainer: Kevin Lewis <aur AT kevin DOT oakaged DOT io>
# Contributor: Jason Lenz <Jason@Lenzplace.org>
_pkgname=sleepyhead
pkgname=$_pkgname-git
pkgver=1.0.0.2.g0e04bd99
pkgrel=3
pkgdesc="Open-source, cross platform, sleep tracking software with a focus on monitoring CPAP treatment."
arch=('i686' 'x86_64')
url="http://sleepyhead.jedimark.net"
license=('GPL')
depends=(
'qt5-base'
'qt5-serialport'
'qt5-webkit'
)
makedepends=('git')
provides=("$_pkgname")
conflicts=('sleepyhead')
source=(
"git+https://gitlab.com/sleepyhead/sleepyhead-code.git"
'moduleupdates.patch'
'Qt-5.8.patch'
'sleepyhead.desktop'
)
sha256sums=('SKIP'
'af1390195fc4a5f2aa0cced24b1ce1a629dbd608a40d10dc319cfcbd959bec02'
'b2783268ae56ad7698ce78c4e72b58557da36d2cf24cf7a680e19ef200d2f350'
'a15100d6bf1e1136d41a36f59613cd20776f0709c74c2e2d1b46f03271e08c3c')
prepare() {
cd sleepyhead-code
patch -Np1 -i "$srcdir/moduleupdates.patch"
patch -Np1 -i "$srcdir/Qt-5.8.patch"
}
pkgver() {
cd sleepyhead-code
_major=$(sed -rn 's/.*major_version = ([0-9]+).*/\1/p' < sleepyhead/version.h)
_minor=$(sed -rn 's/.*minor_version = ([0-9]+).*/\1/p' < sleepyhead/version.h)
_rev=$(sed -rn 's/.*revision_number = ([0-9]+).*/\1/p' < sleepyhead/version.h)
_build=$(cat sleepyhead/scripts/build_number)
_gitversion=$(git rev-parse --short HEAD)
echo $_major.$_minor.$_rev.$_build.g$_gitversion
}
build() {
cd sleepyhead-code
./configure
make
}
package() {
install -D $srcdir/sleepyhead-code/sleepyhead/SleepyHead $pkgdir/usr/bin/sleepyhead
install -Dm644 $srcdir/sleepyhead-code/sleepyhead/icons/bob-v3.0.png $pkgdir/usr/share/sleepyhead/icon.png
install -Dm644 $srcdir/sleepyhead.desktop $pkgdir/usr/share/applications/sleepyhead.desktop
}
# vim:set ts=2 sw=2 et:
|