2 # Contributor: Natrio <natrio@list.ru>
3 # Contributor: dorphell <dorphell@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
9 pkgdesc="A program for ejecting removable media under software control. Patched for unlock tray. Fedora's patches added."
10 arch=('i686' 'x86_64')
11 url="http://eject.sourceforge.net/"
16 source=("ftp://ftp.archlinux.org/other/eject/eject-${pkgver}.tar.bz2"
17 'eject-2.1.1-verbose.patch'
18 'eject-2.1.5-lock.patch'
19 'eject-2.1.5-spaces.patch'
20 'eject-2.1.5-umount.patch'
22 'eject-2.1.5-unlock.patch'
23 'eject-2.1.5-openrw.patch')
24 md5sums=('5a6cab2184ae4ed21128054d931d558f'
25 '4fb81806de181d5f353a459b7f122081'
26 '7d18c14f7b1bb50149fd2b41215dc4f2'
27 '64f5c54dac064e6dbc427025d919221b'
28 '34221248a269703d3a47a8d2a6fdd2e2'
29 'f6b1b702ef9174e2fd05a56ee2de850e'
30 'f384f98fa689b087d99217a7403bf706'
31 'e74d742540e4f399d348af495bf00e85')
35 patch -p1 -i "${srcdir}/eject-2.1.1-verbose.patch" || exit 1
36 patch -p1 -i "${srcdir}/eject-2.1.5-lock.patch" || exit 1
37 patch -p1 -i "${srcdir}/eject-2.1.5-spaces.patch" || exit 1
38 patch -p1 -i "${srcdir}/eject-2.1.5-umount.patch" || exit 1
39 patch -p1 -i "${srcdir}/eject-timeout.patch" || exit 1
40 patch -p1 -i "${srcdir}/eject-2.1.5-unlock.patch" || exit 1
41 patch -p1 -i "${srcdir}/eject-2.1.5-openrw.patch" || exit 1
42 ./configure --prefix=/usr --mandir=/usr/share/man || exit 1
48 make DESTDIR="${pkgdir}" install