Advertisement
lenzj

SleepyHead PKGBUILD

Sep 1st, 2014
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.85 KB | None | 0 0
  1. # Maintainer: Jason Lenz <Jason@Lenzplace.org>
  2. pkgname=sleepyhead
  3. _snapshotname=sleepyhead-code-fbf47eec95a670f4d9fcb460e5849a2319daeb63
  4. pkgver=0.9.6
  5. pkgrel=1
  6. pkgdesc="Open-source, cross platform, sleep tracking software with a focus on monitoring CPAP treatment."
  7. arch=('i686' 'x86_64')
  8. url="http://sourceforge.net/projects/sleepyhead"
  9. license=('GPL')
  10. depends=(
  11.   'qt5-base'
  12.   'qt5-serialport'
  13.   'qt5-webkit'
  14. )
  15. provides=("$pkgname")
  16. conflicts=("$pkgname")
  17.  
  18. # The sourceforge link below seems to be a stable way to download a source file snapshot for a sourceforge
  19. # project that doesn't generate tarball downloads.  See comments at end for more info.
  20. source=("$pkgname.zip::http://sourceforge.net/code-snapshots/git/s/sl/sleepyhead/code.git/$_snapshotname.zip")
  21.  
  22. md5sums=('058ecf879319ef18efb5fe06b22295fa')
  23.  
  24. prepare() {
  25.   cd "$srcdir"
  26.   # The zip file downloaded from sourceforge extracts into a nonstandard folder
  27.   # name.  The command below is needed to rename it to the standard format.
  28.   mv "$_snapshotname" "$pkgname"
  29. }
  30.  
  31. package() {
  32.   cd "$pkgname"
  33.   ./configure
  34.   make
  35.   install -D "sleepyhead/SleepyHead" "$pkgdir/usr/bin/SleepyHead"
  36. }
  37.  
  38. # To determine the source link path that is used above, go to the code section of the respective project,
  39. # select the preferred branch or tag and then click on the 'Download Snapshot' link.  Afterwards a
  40. # 'direct link' will show up which you can copy and use in a PKGBUILD as is being done here.
  41.  
  42. # An alternate way to do this is via git, but the downside is that the whole md5sum check has to be skipped.
  43. # To use git, replace the 'source' and 'md5sums' variables with the versions below, add the makedepends variable
  44. # below and delete the prepare() function.
  45. #source=("$pkgname::git+git://git.code.sf.net/p/sleepyhead/code#tag=0.9.6")
  46. #md5sums=('SKIP')
  47. #makedepends=('git')
  48.  
  49. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement