summaryrefslogtreecommitdiffstats
path: root/abs/core/iguanair
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-12-02 18:13:59 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-12-02 18:13:59 (GMT)
commit066bcb38c4b416f0c380e9c8292a50f9103b72b6 (patch)
tree07de64551a26f8a292dd1fff09f006334d7e1396 /abs/core/iguanair
parentb0043b3d2e43f154d7a4d48db95ef59f2d504fdd (diff)
parentb5cb0290860bd55f2fd25238996601f2fd749615 (diff)
downloadlinhes_pkgbuild-066bcb38c4b416f0c380e9c8292a50f9103b72b6.zip
linhes_pkgbuild-066bcb38c4b416f0c380e9c8292a50f9103b72b6.tar.gz
linhes_pkgbuild-066bcb38c4b416f0c380e9c8292a50f9103b72b6.tar.bz2
Merge branch 'testing' of ssh://linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/iguanair')
-rwxr-xr-xabs/core/iguanair/PKGBUILD58
1 files changed, 37 insertions, 21 deletions
diff --git a/abs/core/iguanair/PKGBUILD b/abs/core/iguanair/PKGBUILD
index 18a02a6..1a6a6f5 100755
--- a/abs/core/iguanair/PKGBUILD
+++ b/abs/core/iguanair/PKGBUILD
@@ -1,25 +1,41 @@
-pkgname=iguanaIR
-#pkgver=0.8.0.20061009
-pkgver=0.99
-pkgrel=3
-# leaving kernver dynamic ensures compatibility with srcpac
-_kernver=2.6.28-LinHES
-pkgdesc="Linux Infrared Remote Control usb from iguanaworks"
-arch=(i686 x86_64)
-depends=('swig' )
-source=(http://iguanaworks.net/downloads/iguanaIR-0.99.tar.bz2)
+pkgname=iguanair
+pkgver=1.0.1
+pkgrel=1
+_kernver=2.6.36-LinHES
url="http://iguanaworks.net"
-#install=$pkgname.install
-
+pkgdesc="Linux Infrared Remote Control usb from iguanaworks"
+license=('GPL2' 'LGPL')
+arch=('i686' 'x86_64')
+depends=('swig' 'libusb1')
+replaces=('iguanaIR')
+source=(http://iguanaworks.net/downloads/iguanaIR-${pkgver}.tar.bz2)
build() {
- # configure
- cd $startdir/src/$pkgname-$pkgver || return 1
- ./configure
- make || return 1
- make PREFIX=$startdir/pkg/usr DESTDIR=$startdir/pkg install || return 1
- mkdir $startdir/pkg/usr/bin/
- ls -la ig*
- #cp -f igclient $startdir/pkg/usr/bin/
- #cp -f igd* $startdir/pkg/usr/bin/
+ cd ${srcdir}/iguanaIR-${pkgver} || return 1
+ ./configure
+ make || return 1
+}
+package() {
+ cd ${srcdir}/iguanaIR-${pkgver} || return 1
+ make PREFIX=${pkgdir}/usr DESTDIR=${pkgdir} install || return 1
+ install -D -m755 igclient ${pkgdir}/usr/bin/
+ cp igd* ${pkgdir}/usr/bin/
+
+ install -d ${pkgdir}/usr/share/docs/${pkgname}
+ cp -r ${srcdir}/iguanaIR-${pkgver}/docs/* ${pkgdir}/usr/share/docs/${pkgname}
+ rm -f ${pkgdir}/usr/share/docs/${pkgname}/Makefile
+
+ install -d ${pkgdir}/usr/share/${pkgname}/utils
+ install -d ${pkgdir}/usr/share/${pkgname}/scripts
+ cp -r ${srcdir}/iguanaIR-${pkgver}/utils/* ${pkgdir}/usr/share/${pkgname}/utils
+ cp -r ${srcdir}/iguanaIR-${pkgver}/scripts/* ${pkgdir}/usr/share/${pkgname}/scripts
+
+ # python2 fix
+ cd ${pkgdir}/usr/share/${pkgname}/utils
+ sed -i -e "s|\#\!/usr/bin/python\ \-tt|\#\!/usr/bin/python2\ \-tt|" \
+ -e "s|\#\!/usr/bin/python$|\#\!/usr/bin/python2|" $(ls)
+ cd ${pkgdir}/usr/share/${pkgname}/scripts
+ sed -i -e "s|\#\!/usr/bin/python\ \-tt|\#\!/usr/bin/python2\ \-tt|" \
+ -e "s|\#\!/usr/bin/python$|\#\!/usr/bin/python2|" $(ls)
}
+md5sums=('cf9e6e7939ff9d76aa985fab8c6f5af7')