updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / eject-unlock / PKGBUILD
blobc409df32629e498b5ab33a60016256007860ce7d
1 # $Id$
2 # Contributor: Natrio <natrio@list.ru>
3 # Contributor: dorphell <dorphell@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
6 pkgname=eject-unlock
7 pkgver=2.1.5
8 pkgrel=3
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/"
12 license=('GPL')
13 conflicts=('eject')
14 provides=('eject')
15 depends=('glibc')
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'
21         'eject-timeout.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')
33 build() {
34   cd "${srcdir}/eject"
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
43   make
46 package() {
47   cd "${srcdir}/eject"
48   make DESTDIR="${pkgdir}" install