updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / iscan / PKGBUILD
blob50fa73dbe58a49bfef118d654f9ca9308a40271a
1 # Maintainer: Alessio Sergi <asergi at archlinux dot us>
3 pkgname=iscan
4 pkgver=2.28.1
5 pkgrel=1
6 pkgdesc="A front-end for EPSON scanner/all-in-ones"
7 arch=('i686' 'x86_64')
8 url="http://avasys.jp/eng/linux_driver/"
9 license=('GPL2' 'custom:AVASYSPL')
10 depends=('gtk2' 'iscan-data' 'sane')
11 makedepends=('gettext')
12 conflicts=(${pkgname}-legacy)
13 install=${pkgname}.install
14 options=('!libtool')
15 source=(http://linux.avasys.jp/drivers/${pkgname}/${pkgver}/${pkgname}_${pkgver}-3.tar.gz)
16 md5sums=('df777c77425cde132ed94c13a47eb8d7')
18 build() {
19   cd "${srcdir}/${pkgname}-${pkgver}"
21   export LDFLAGS="${LDFLAGS} -ldl -lpng14"
23   ./configure --prefix=/usr \
24               --enable-dependency-reduction \
25               --enable-frontend \
26               --enable-jpeg \
27               --enable-tiff \
28               --enable-png #--enable-gimp
29   make
32 package() {
33   cd "${srcdir}/${pkgname}-${pkgver}"
35   make DESTDIR="${pkgdir}" install
37   # install sane file config
38   install -d -m755 "${pkgdir}/etc/sane.d"
39   install -m644 backend/epkowa.conf "${pkgdir}/etc/sane.d/epkowa.conf"
41   # install desktop file
42   install -d -m755 "${pkgdir}/usr/share/applications"
43   install -m644 "${pkgname}.desktop" \
44     "${pkgdir}/usr/share/applications/${pkgname}.desktop"
46   # install license
47   install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
48   install -m644 "${srcdir}/${pkgname}-${pkgver}/non-free/AVASYSPL.en.txt" \
49     "${pkgdir}/usr/share/licenses/${pkgname}/AVASYSPL"
52 # vim:set ts=2 sw=2 et: