updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / palm-novacom-lite / PKGBUILD
blob19c0087191b850c3831063d4aadc8ea779cf54f7
1 # Contributor: Ryan Corder <ryanc@greengrey.org>
2 # Maintainer: Viliam Pucik <viliam.pucik@gmail.com>
4 pkgname=palm-novacom-lite
5 _pkgname=palm-novacom
6 pkgver=1.0.80
7 pkgrel=3
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')
11 license=('unknown')
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
18             'novacomd'
19             'novacomd-conf.d')
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')
25 else
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
28             'novacomd'
29             'novacomd-conf.d')
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')
37 build() {
38     cd "${srcdir}"
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