Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Jason Lenz <Jason@Lenzplace.org>
- pkgname=sleepyhead
- _snapshotname=sleepyhead-code-fbf47eec95a670f4d9fcb460e5849a2319daeb63
- pkgver=0.9.6
- pkgrel=1
- pkgdesc="Open-source, cross platform, sleep tracking software with a focus on monitoring CPAP treatment."
- arch=('i686' 'x86_64')
- url="http://sourceforge.net/projects/sleepyhead"
- license=('GPL')
- depends=(
- 'qt5-base'
- 'qt5-serialport'
- 'qt5-webkit'
- )
- provides=("$pkgname")
- conflicts=("$pkgname")
- # The sourceforge link below seems to be a stable way to download a source file snapshot for a sourceforge
- # project that doesn't generate tarball downloads. See comments at end for more info.
- source=("$pkgname.zip::http://sourceforge.net/code-snapshots/git/s/sl/sleepyhead/code.git/$_snapshotname.zip")
- md5sums=('058ecf879319ef18efb5fe06b22295fa')
- prepare() {
- cd "$srcdir"
- # The zip file downloaded from sourceforge extracts into a nonstandard folder
- # name. The command below is needed to rename it to the standard format.
- mv "$_snapshotname" "$pkgname"
- }
- package() {
- cd "$pkgname"
- ./configure
- make
- install -D "sleepyhead/SleepyHead" "$pkgdir/usr/bin/SleepyHead"
- }
- # To determine the source link path that is used above, go to the code section of the respective project,
- # select the preferred branch or tag and then click on the 'Download Snapshot' link. Afterwards a
- # 'direct link' will show up which you can copy and use in a PKGBUILD as is being done here.
- # An alternate way to do this is via git, but the downside is that the whole md5sum check has to be skipped.
- # To use git, replace the 'source' and 'md5sums' variables with the versions below, add the makedepends variable
- # below and delete the prepare() function.
- #source=("$pkgname::git+git://git.code.sf.net/p/sleepyhead/code#tag=0.9.6")
- #md5sums=('SKIP')
- #makedepends=('git')
- # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement