updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vuescan / PKGBUILD
blob0060cc066da60a7e7c0bae5fdff4ed7e25049d5a
1 # Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
3 # Maintainer: David Spicer <azleifel at googlemail dot com>
6 # Build with "makepkg --skipinteg"
8 _pkgsourcename=VueScan
9 pkgname=vuescan
10 pkgver=9
11 pkgrel=4
12 pkgdesc="A powerful but easy to use OSI scanning tool."
13 arch=('i686' 'x86_64')
14 url="http://www.hamrick.com/"
15 license=('custom')
16 depends=("gtk2" "libsm" "libusb-compat")
17 options=(!strip)
18 [ "${CARCH}" == "i686" ] && source=(http://www.hamrick.com/files/vuex3290.tgz \
19   license.txt \
20   vuescan.sh \
21   vuescan.desktop)
22 [ "${CARCH}" == "x86_64" ] && source=(http://www.hamrick.com/files/vuex6490.tgz \
23   license.txt \
24   vuescan.sh \
25   vuescan.desktop)
26 md5sums=()
27        
28 build() {
29   cd "${srcdir}"
31   # Application
32   install -d -m755 "${pkgdir}/opt/${pkgname}"
33   cp -rp "${_pkgsourcename}"/* "${pkgdir}/opt/${pkgname}/"
35   # Extras
36   install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
37   install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
39   # License
40   install -D -m644 "${srcdir}/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"