diff options
author | Chris Severance | 2022-09-24 12:31:57 -0400 |
---|---|---|
committer | Chris Severance | 2022-09-24 12:31:57 -0400 |
commit | 41b472e3e34034a5a0cfe71f78d73b864d4c15fb (patch) | |
tree | fb257b8c912d459eac217ae84dc86601f0b3ed5d | |
parent | f31d16b5c7e831287afd793efa3f29da4491acbb (diff) | |
download | aur-mt-st-git.tar.gz |
autu: Update to 1.4.r10.gfbfd923-1
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 24 insertions, 12 deletions
@@ -1,16 +1,20 @@ +# Generated by mksrcinfo v8 +# Sat Sep 24 16:31:56 UTC 2022 pkgbase = mt-st-git pkgdesc = Utilities for managing magnetic tape storage devices - pkgver = 1.1.r6.gece9c03 + pkgver = 1.4.r10.gfbfd923 pkgrel = 1 - url = https://github.com/Distrotech/mt-st + url = https://github.com/iustin/mt-st arch = i686 arch = x86_64 license = GPLv2 makedepends = git depends = tar - provides = mt-st=1.1 + provides = mt-st=1.4 conflicts = mt-st - source = mt-st::git+https://github.com/Distrotech/mt-st.git + source = git+https://github.com/iustin/mt-st.git + md5sums = SKIP sha256sums = SKIP pkgname = mt-st-git + @@ -5,30 +5,38 @@ set -u _pkgname='mt-st' pkgname="${_pkgname}-git" -pkgver=1.1.r6.gece9c03 +pkgver=1.4.r10.gfbfd923 pkgrel=1 pkgdesc='Utilities for managing magnetic tape storage devices' arch=('i686' 'x86_64') -url="https://github.com/Distrotech/${_pkgname}" +#url="https://github.com/Distrotech/${_pkgname}" +url="https://github.com/iustin/${_pkgname}" license=('GPLv2') depends=('tar') makedepends=('git') provides=("${_pkgname}=${pkgver%.r*}") conflicts=("${_pkgname}") -source=("${_pkgname}::git+${url}.git") +source=("git+${url}.git") +md5sums=('SKIP') sha256sums=('SKIP') pkgver() { set -u cd "${_pkgname}" - printf '%s.r%s.g%s' "$(sed -ne 's:^#define VERSION "\(.*\)"$:\1:p' "mt.c")" "$(git rev-list --count HEAD)" "$(git describe --always )" # ' + #printf '%s.r%s.g%s' "$(sed -ne 's:^#define VERSION "\(.*\)"$:\1:p' "mt.c")" "$(git rev-list --count HEAD)" "$(git describe --always )" # ' + git describe --long | sed -E -e 's/^v//' -e 's/[^-]+-g/r&/' -e 's/-/./g' set +u } prepare() { set -u cd "${_pkgname}" - sed -e 's:^#include <sys/types.h>$:#include <sys/sysmacros.h>\n&:g' -i 'mt.c' + #sed -e 's:^#include <sys/types.h>$:#include <sys/sysmacros.h>\n&:g' -i 'mt.c' + sed -E \ + -e '/^SBINDIR=/ s:/sbin:/usr/bin:g' \ + -e '/^BINDIR=/ s:/bin:/usr/bin:g' \ + -e '/^COMPLETIONINSTALLDIR=/ s:/etc:/usr/share:g' \ + -i 'Makefile' set +u } @@ -42,9 +50,9 @@ build() { package() { set -u cd "${_pkgname}" - make DESTDIR="${pkgdir}" PREFIX='/usr' SBINDIR='/usr/bin' install + make DESTDIR="${pkgdir}" install + mv "${pkgdir}/usr/bin/"{mt,mt-st} + mv "${pkgdir}/usr/share/man/man1/"{mt.1,mt-st.1} set +u } set +u - -# vim:set ts=2 sw=2 et: |