blob: 6aa86341a7d36fcfbc7279d629c137ca94096a7c (
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
|
# Maintainer: Recursive G <g.recursive at gmail dot com>
# Contributor: Jonathan Chasteen <jonathan.chasteen at live dot com>
pkgname=ltfs
pkgver=2.4.7.1
_pkgver2=10515
pkgrel=1
pkgdesc='Linear Tape File System'
arch=('x86_64' 'i686')
url='https://github.com/LinearTapeFileSystem/ltfs'
license=('BSD')
depends=('fuse' 'icu' 'libxml2' 'net-snmp' 'python-pyxattr')
makedepends=('patch' 'gcc' 'pkg-config' 'make' 'fakeroot')
backup=('etc/ltfs.conf.local')
source=("https://github.com/LinearTapeFileSystem/ltfs/archive/refs/tags/v${pkgver}-${_pkgver2}.tar.gz")
sha256sums=('6b4f8421882c3904ab66b670b51c309d8a7983a1440b1d5871b575634792ae99')
build() {
cd "${srcdir}/ltfs-${pkgver}-${_pkgver2}"
./autogen.sh
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-fast
make
}
package() {
cd "${srcdir}/ltfs-${pkgver}-${_pkgver2}"
# Not sure if using the makefile wrong
# sed -i 's:$(sysconfdir)/ltfs.conf.local:$(DESTDIR)$(sysconfdir)/ltfs.conf.local:g' "conf/Makefile"
# sed -i 's:${datarootdir}/ltfs:$(DESTDIR)${datarootdir}/ltfs:g' "init.d/Makefile"
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"
}
|