1 # Contributor: Ryan Corder <ryanc@greengrey.org>
2 # Maintainer: Viliam Pucik <viliam.pucik@gmail.com>
4 pkgname=palm-novacom-lite
8 pkgdesc="Palm's Novacom terminal to connect your Palm with PC."
9 url="http://developer.palm.com/index.php"
10 arch=('i686' 'x86_64')
12 conflicts=('palm-novacom')
14 # novacomd does not run correctly with default Arch Linux libusb
15 if [[ "${CARCH}" = "x86_64" ]]; then
16 source=(https://cdn.downloads.palm.com/sdkdownloads/3.0.4.669/sdkBinaries/${_pkgname}_${pkgver}_amd64.deb
17 http://mirror.ovh.net/ubuntu/pool/main/libu/libusb/libusb-0.1-4_0.1.12-20_amd64.deb
20 noextract=(${_pkgname}_${pkgver}_amd64.deb libusb-0.1-4_0.1.12-20_amd64.deb)
21 md5sums=('1719e8c6705b93498fdc7110c4a73ccf'
22 'f4e26f69edf4680c779bb0c61f5379f7'
23 'df9b1bc4f4d60301f933a52afbf796cb'
24 'b99bd22ff41108b78ba3a74fa768f5ff')
26 source=(https://cdn.downloads.palm.com/sdkdownloads/3.0.4.669/sdkBinaries/${_pkgname}_${pkgver}_i386.deb
27 http://mirror.ovh.net/ubuntu/pool/main/libu/libusb/libusb-0.1-4_0.1.12-20_i386.deb
30 noextract=(${_pkgname}_${pkgver}_i386.deb libusb-0.1-4_0.1.12-20_i386.deb)
31 md5sums=('ef4414ec70ec3a08308692d152960381'
32 '111266b044c0b3043a8bf14668657e7f'
33 'df9b1bc4f4d60301f933a52afbf796cb'
34 'b99bd22ff41108b78ba3a74fa768f5ff')
40 install -Dm 0755 "${srcdir}"/novacomd "${pkgdir}"/etc/rc.d/novacomd
41 install -Dm 0644 "${srcdir}"/novacomd-conf.d "${pkgdir}"/etc/conf.d/novacomd
43 ar x ${_pkgname}_${pkgver}_*.deb
44 tar zxvf data.tar.gz -C "${srcdir}"
45 install -dm 0755 -p "${pkgdir}"/opt/Palm/novacom
46 install -m 0755 "${srcdir}"/opt/Palm/novacom/novacom "${pkgdir}"/opt/Palm/novacom
47 install -m 0755 "${srcdir}"/opt/Palm/novacom/novacomd "${pkgdir}"/opt/Palm/novacom
48 install -m 0755 "${srcdir}"/opt/Palm/novacom/novaterm "${pkgdir}"/opt/Palm/novacom
49 install -dm 0755 -p "${pkgdir}"/usr/bin
50 ln -s /opt/Palm/novacom/novacom "${pkgdir}"/usr/bin/novacom
51 ln -s /opt/Palm/novacom/novaterm "${pkgdir}"/usr/bin/novaterm
53 ar x libusb-0.1-4*.deb
54 tar zxvf data.tar.gz -C "${srcdir}"
55 install -m 0644 "${srcdir}"/lib/*-linux-gnu/libusb-0.1.so.4.4.4 "${pkgdir}"/opt/Palm/novacom/libusb-0.1.so.4