diff options
author | Chris Severance | 2018-09-24 16:17:18 -0400 |
---|---|---|
committer | Chris Severance | 2018-09-24 16:17:18 -0400 |
commit | a69b35dabf8d3bed5c17c6b8a13470ff190b5f2b (patch) | |
tree | 3b653b63f7da0573a5a4e7e53068f54b0292aecb | |
parent | e006edd023ed2b53e739bcbc977958ccfba5cb20 (diff) | |
download | aur-a69b35dabf8d3bed5c17c6b8a13470ff190b5f2b.tar.gz |
autu: Update to 1.1.r6.gece9c03-1 Fix sysmacros compile error
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 8 insertions, 14 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Fri May 27 20:07:07 UTC 2016 +# Mon Sep 24 20:17:18 UTC 2018 pkgbase = mt-st-git pkgdesc = Utilities for managing magnetic tape storage devices pkgver = 1.1.r6.gece9c03 @@ -25,6 +25,13 @@ pkgver() { set +u } +prepare() { + set -u + cd "${_pkgname}" + sed -e 's:^#include <sys/types.h>$:#include <sys/sysmacros.h>\n&:g' -i 'mt.c' + set +u +} + build() { set -u cd "${_pkgname}" @@ -37,19 +44,6 @@ package() { cd "${_pkgname}" make DESTDIR="${pkgdir}" PREFIX='/usr' SBINDIR='/usr/bin' install set +u - # Ensure there are no forbidden paths. Place at the end of package() and comment out as you find or need exceptions. (git-aurcheck) - ! test -d "${pkgdir}/bin" || { echo "Line ${LINENO} Forbidden: /bin"; false; } - ! test -d "${pkgdir}/sbin" || { echo "Line ${LINENO} Forbidden: /sbin"; false; } - ! test -d "${pkgdir}/lib" || { echo "Line ${LINENO} Forbidden: /lib"; false; } - ! test -d "${pkgdir}/share" || { echo "Line ${LINENO} Forbidden: /share"; false; } - ! test -d "${pkgdir}/usr/sbin" || { echo "Line ${LINENO} Forbidden: /usr/sbin"; false; } - ! test -d "${pkgdir}/usr/local" || { echo "Line ${LINENO} Forbidden: /usr/local"; false; } - ! grep -lr "/sbin" "${pkgdir}" || { echo "Line ${LINENO} Forbidden: /sbin"; false; } - ! grep -lr "/usr/tmp" "${pkgdir}" || { echo "Line ${LINENO} Forbidden: /usr/tmp"; false; } - ! grep -lr "/usr/local" "${pkgdir}" || { echo "Line ${LINENO} Forbidden: /usr/local"; false; } - if command -v 'pcre2grep' >/dev/null 2>&1; then - ! pcre2grep -Ilr "(?<!/usr)/bin" "${pkgdir}" || { echo "Line ${LINENO} Forbidden: /bin"; false; } - fi } set +u |