summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 703d62ba98e0ccc2e0f3862277a7a8f3d52d112e (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
# Maintainer: Firas Zaidan <firas@zaidan.de>
# Contributor: Janne Heß <jannehess@gmail.com>

pkgname=ltfs-quantum
pkgver=2.4.0.2
_mver=2.4
_pkgver2=5-00732-10
pkgrel=1
pkgdesc='Linear Tape File System'
arch=('x86_64' 'i686')
url='http://www.quantum.com/serviceandsupport/opensource/ltfs/index.aspx'
license=('custom:ltfs')
depends=('fuse' 'icu' 'libxml2' 'net-snmp' 'uuid')
makedepends=('patch' 'gcc' 'pkg-config' 'make' 'fakeroot' 'automake' 'autoconf' 'libtool')
backup=('etc/ltfs.conf.local')
source=("http://downloads.quantum.com/open_source/LTFS/${pkgver}/${_pkgver2}.zip"
        'LICENSE')
sha512sums=('97f6870773f4d8558184ceb8c2e9a437ee35ef3062b1a6c5cb6113fcfb2eeda743e369b65717e0f697c4caf0a215e0883b1118678b2c720647fd47ff6e654314'
            '865c4a581d32d94537ba8d19f2494ba9da54328cd94cf0cffac25b8f446cdeb062172d7598c45ac85477a239b5e5a9b7342a9a4711c54efa7f47b79d89c9d893')

prepare() {
  tar xf `find "${srcdir}" -name '*.tar.gz'`
}

build() {
  cd "${srcdir}/qtmltfs${_mver}"

  ./autogen.sh

  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --sysconfdir=/etc \
    --localstatedir=/var

  make
}

package() {
  cd "${srcdir}/qtmltfs${_mver}"

  make DESTDIR="${pkgdir}" install

  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/ltfs"
  # This sysvinit service is not needed because systemd will umount everything on poweroff.
  rm -r "${pkgdir}/usr/share/ltfs"
}