summaryrefslogtreecommitdiff
path: root/extra/eject/PKGBUILD
blob: 093bfcf6103c54f969dd3cfe9e3e0ea3b14e625d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $Id: PKGBUILD 135944 2011-08-20 17:05:11Z tomegun $
# Maintainer: Tom Gundersen <teg@jlkm.no>
# Contributor: Natrio <natrio@list.ru>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=eject
pkgver=2.1.5
pkgrel=7.1
pkgdesc="A program for ejecting removable media under software control."
arch=('i686' 'x86_64' 'mips64el')
url="http://eject.sourceforge.net/"
license=('GPL')
depends=('glibc')
source=("ftp://ftp.archlinux.org/other/eject/eject-${pkgver}.tar.bz2"
        'eject-2.1.1-verbose.patch'
        'eject-2.1.5-lock.patch'
        'eject-2.1.5-spaces.patch'
        'eject-2.1.5-umount.patch'
        'eject-timeout.patch'
        'eject-2.1.5-unlock.patch'
        'eject-2.1.5-openrw.patch')
md5sums=('5a6cab2184ae4ed21128054d931d558f'
         '4fb81806de181d5f353a459b7f122081'
         '7d18c14f7b1bb50149fd2b41215dc4f2'
         '64f5c54dac064e6dbc427025d919221b'
         '34221248a269703d3a47a8d2a6fdd2e2'
         'f6b1b702ef9174e2fd05a56ee2de850e'
         'f384f98fa689b087d99217a7403bf706'
         'e74d742540e4f399d348af495bf00e85')

build() {
  cd "${srcdir}/eject"
  patch -p1 -i "${srcdir}/eject-2.1.1-verbose.patch"
  patch -p1 -i "${srcdir}/eject-2.1.5-lock.patch"
  patch -p1 -i "${srcdir}/eject-2.1.5-spaces.patch"
  patch -p1 -i "${srcdir}/eject-2.1.5-umount.patch"
  patch -p1 -i "${srcdir}/eject-timeout.patch"
  patch -p1 -i "${srcdir}/eject-2.1.5-unlock.patch"
  patch -p1 -i "${srcdir}/eject-2.1.5-openrw.patch"
  ./configure --prefix=/usr \
              --mandir=/usr/share/man \
              --enable-default-device=sr0
  make
}

package() {
  cd "${srcdir}/eject"
  make DESTDIR="${pkgdir}" install
}