blob: c769d2ab51abf7172b5d811a3b99499de3e4994c (
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
|
# Maintainer: Kevin Lewis <aur AT kevin DOT oakaged DOT io>
# Contributor: Jason Lenz <Jason@Lenzplace.org>
pkgname=sleepyhead
pkgver=1.0.0
subver="beta-2"
pkgrel=2
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'
'glu'
)
makedepends=('git')
provides=("$pkgname")
conflicts=('sleepyhead-git')
source=(
"${pkgname}-${pkgver}-${subver}.tar.bz2::https://gitlab.com/sleepyhead/sleepyhead-code/repository/archive.tar.bz2?ref=${pkgver}-${subver}"
'moduleupdates.patch'
'Qt-5.8.patch'
)
sha256sums=(
db6152a47df69c5cf85a75171d64c2208a953d838ea5c974c2399e8d7cc94353 #sleepyhead-code-1.0.0-beta-2.tar.bz2
af1390195fc4a5f2aa0cced24b1ce1a629dbd608a40d10dc319cfcbd959bec02 #moduleupdates.patch
b2783268ae56ad7698ce78c4e72b58557da36d2cf24cf7a680e19ef200d2f350 #Qt-5.8.patch
)
prepare() {
mv sleepyhead-code* sleepyhead-code
cd sleepyhead-code
patch -Np1 -i "$srcdir/moduleupdates.patch"
patch -Np1 -i "$srcdir/Qt-5.8.patch"
}
build() {
cd sleepyhead-code
export CXXFLAGS="$CXXFLAGS -fpermissive"
./configure
make
}
package() {
install -D "$srcdir/sleepyhead-code/sleepyhead/SleepyHead" "$pkgdir/usr/bin/SleepyHead"
}
# vim:set ts=2 sw=2 et:
|