PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/inputlircd-svn/PKGBUILD

https://bitbucket.org/axil42/aur-mirror
#! | 41 lines | 35 code | 6 blank | 0 comment | 0 complexity | 97421797fa0efad582323563175b4a8f MD5 | raw file
Possible License(s): IPL-1.0, Apache-2.0, LGPL-2.0, Unlicense, MPL-2.0-no-copyleft-exception, LGPL-2.1, JSON, GPL-3.0, MPL-2.0, CC0-1.0, CC-BY-SA-3.0, LGPL-3.0, WTFPL, BSD-2-Clause, 0BSD, BitTorrent-1.0, Cube, EPL-1.0, ISC, BSD-3-Clause, AGPL-3.0, GPL-2.0, MIT, AGPL-1.0, CC-BY-3.0
  1. # Contributor: Roman Timushev <romikt@gmail.com>
  2. pkgname=inputlircd-svn
  3. pkgver=13
  4. pkgrel=1
  5. pkgdesc="Inputlirc daemon to utilize /dev/input/event*"
  6. arch=(i686 x86_64)
  7. url="http://svn.sliepen.eu.org/inputlirc/trunk"
  8. license=('GPL')
  9. makedepends=(subversion)
  10. source=(inputlircd.conf
  11. inputlircd.init)
  12. md5sums=('9dbd441ab206fec3822fa95bade8a616'
  13. '1d67b170c3244258e37562eaa974e48d')
  14. _svntrunk=http://svn.sliepen.eu.org/inputlirc/trunk
  15. _svnmod=inputlircd
  16. build() {
  17. cd "$srcdir"
  18. if [ -d $_svnmod/.svn ]; then
  19. (cd $_svnmod && svn up -r $pkgver)
  20. else
  21. svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  22. fi
  23. msg "SVN checkout done or server timeout"
  24. msg "Starting make..."
  25. rm -rf "$srcdir/$_svnmod-build"
  26. cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  27. cd "$srcdir/$_svnmod-build"
  28. #
  29. # BUILD
  30. #
  31. make || return 1
  32. make DESTDIR="$pkgdir/" PREFIX="/usr" install
  33. install -D -m644 ../inputlircd.conf "$pkgdir/etc/conf.d/inputlircd"
  34. install -D -m755 ../inputlircd.init "$pkgdir/etc/rc.d/inputlircd"
  35. }