1 # Maintainer: Arseniy Krasnov arseniy@krasnoff.org
5 pkgdesc="Lightpack is a monitor light device used for presence effect strengthening. "
7 url="http://code.google.com/p/lightpack/"
10 makedepends=('mercurial')
14 _hgroot='https://lightpack.googlecode.com/hg/'
19 msg "Connecting to Mercurial server...."
21 if [[ -d "$_hgrepo" ]]; then
24 msg "The local files are updated."
30 msg "Mercurial checkout done or server timeout"
31 msg "Starting build..."
33 cd "$srcdir/$_hgrepo/Software"
34 sed -i 's/LIBS += -ludev/& -lX11 -lXext -lrt/' src/src.pro
40 mkdir -p $pkgdir/etc/udev/rules.d
41 cp $srcdir/$_hgrepo/93-lightpack.rules $pkgdir/etc/udev/rules.d
42 mkdir -p $pkgdir/usr/bin
43 cp $srcdir/$_hgrepo/Software/src/bin/Lightpack $pkgdir/usr/bin
46 udevadm control --reload-rules
48 # vim:set ts=2 sw=2 et: