diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 19 insertions, 22 deletions
@@ -1,47 +1,44 @@ -# Maintainer: Jonathan Chasteen <jonathan.chasteen@live.com> +# Maintainer: Recursive G <g.recursive at gmail dot com> +# Contributor: Jonathan Chasteen <jonathan.chasteen at live dot com> pkgname=ltfs -pkgver=2.4.0.2 -_pkgver2=5-00732-10 -_pkgver3=2.4 -pkgrel=2 +pkgver=2.4.5.0 +_pkgver2=10502 +pkgrel=1 pkgdesc='Linear Tape File System' arch=('x86_64' 'i686') -url='https://www.quantum.com/ServiceandSupport/OpenSource/LTFS/Index.aspx' -license=('custom:ltfs') -depends=('fuse' 'icu' 'libxml2') -makedepends=('patch' 'gcc' 'pkg-config' 'make' 'fakeroot' 'net-snmp') +url='https://github.com/LinearTapeFileSystem/ltfs' +license=('BSD') +depends=('fuse' 'icu' 'libxml2' 'net-snmp') +makedepends=('patch' 'gcc' 'pkg-config' 'make' 'fakeroot') 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'` -} +source=("https://github.com/LinearTapeFileSystem/ltfs/archive/refs/tags/v${pkgver}-${_pkgver2}.tar.gz") +sha256sums=('2525773d740d315e9b1ce3ad615d51f5fa8a9da6b648c9f6e57fcca422bd04ac') build() { - cd "${srcdir}/qtmltfs${_pkgver3}" + cd "${srcdir}/ltfs-${pkgver}-${_pkgver2}" + sed -i '/^AC_CONFIG_MACRO_DIR(\[m4\])$/d' configure.ac + sed -i 's,sys/sysctl.h,linux/sysctl.h,' src/libltfs/arch/arch_info.c ./autogen.sh ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc \ - --localstatedir=/var + --localstatedir=/var \ + --enable-fast make } package() { - cd "${srcdir}/qtmltfs${_pkgver3}" + 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" + # 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" + #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" } |