Created
June 2, 2021 14:55
-
-
Save k3a/c49c0924ad48da21d51aa044f714ef42 to your computer and use it in GitHub Desktop.
basez aur package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/Makefile.src | |
+++ b/Makefile.src | |
@@ -21,7 +21,7 @@ | |
.PHONY: all man dist clean distclean \ | |
uninstall install install-strip \ | |
install-mans install-docs install-completion \ | |
- installdirs install-common test \ | |
+ install-common test \ | |
install-unix install-windows\ | |
uninstall-unix uninstall-windows\ | |
@@ -281,6 +281,7 @@ | |
done | |
install-unix: install-common | |
+ @$(INST) -d $(DESTDIR)$(BINDIR) | |
@$(INST) -m 755 $(BINS) $(DESTDIR)$(BINDIR)/ | |
@[ -n "${BINLINKS}" ] && \ | |
for LINK in ${BINLINKS} ; do \ | |
@@ -289,6 +290,7 @@ | |
done | |
install-mans: basez.1 | |
+ @$(INST) -d $(DESTDIR)$(MANDIR)/man1 | |
@$(INST) -m 644 @SRCS@ $(DESTDIR)$(MANDIR)/man1/ | |
@[ -n "${BINLINKS}" ] && \ | |
for LINK in ${BINLINKS} ; do \ | |
@@ -297,9 +299,11 @@ | |
done | |
install-docs: LICENSE | |
+ @$(INST) -d $(DESTDIR)$(DOCDIR) | |
@$(INST) -m 644 @SRCS@ $(DESTDIR)$(DOCDIR)/ | |
install-completion: basez-completion | |
+ @$(INST) -d $(DESTDIR)$(DATADIR)/bash-completion/completions | |
@$(INST) -m 644 @SRCS@ $(DESTDIR)$(DATADIR)/bash-completion/completions/ | |
@[ -n "${BINLINKS}" ] && \ | |
for LINK in ${BINLINKS} basez ; do \ | |
@@ -307,7 +311,7 @@ | |
$(DESTDIR)$(DATADIR)/bash-completion/completions/$${LINK}; \ | |
done | |
-install-common: all installdirs install-docs install-mans install-completion | |
+install-common: install-docs install-mans install-completion | |
uninstallfiles: | |
@-rm -f -- \ | |
@@ -320,12 +324,6 @@ | |
rm -f -- $(DESTDIR)$(DATADIR)/bash-completion/completions/$${LINK};\ | |
done | |
-installdirs: | |
- @$(INST) -d $(DESTDIR)$(MANDIR)/man1 | |
- @$(INST) -d $(DESTDIR)$(BINDIR) | |
- @$(INST) -d $(DESTDIR)$(DATADIR)/bash-completion/completions | |
- @$(INST) -d $(DESTDIR)$(DOCDIR) | |
- | |
uninstalldirs: uninstallfiles | |
@-rmdir $(DESTDIR)$(DOCDIR)/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/configure | |
+++ b/configure | |
@@ -57,6 +57,8 @@ | |
echo " --bindir=DIR user executables [exec-prefix/bin]" | |
echo " --sbindir=DIR admin executables [exec-prefix/sbin]" | |
echo " --libdir=DIR object code libraries [exec-prefix/lib]" | |
+ echo " --localstatedir=DIR modifiable data [/var]" | |
+ echo " --runstatedir=DIR run-time variable data [localstatedir/run]" | |
echo " --datadir=DIR data [prefix/share]" | |
echo " --mandir=DIR manual pages [datadir/man]" | |
echo " --docdir=DIR documentation files [datadir/doc/$PKGNAME]" | |
@@ -237,6 +239,8 @@ | |
--includedir) t $P1 $2; eval echo INCLUDEDIR = $2>> $C; shift; shift;; | |
--localstatedir=*) eval echo LOCALSTATEDIR = $P2>>$C; shift ;; | |
--localstatedir)t $P1 $2; eval echo LOCALSTATEDIR = $2>>$C; shift; shift;; | |
+ --runstatedir=*) eval echo RUNSTATEDIR = $P2>>$C; shift ;; | |
+ --runstatedir)t $P1 $2; eval echo RUNSTATEDIR = $2>>$C; shift; shift;; | |
--sharedstatedir=*) eval echo SHAREDSTATEDIR = $P2>>$C; shift ;; | |
--sharedstatedir)t $P1 $2;eval echo SHAREDSTATEDIR = $2>>$C; shift; shift;; | |
--build=*) eval BUILD=$P2 ; shift ;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: MasterDocNoble <MasterDocNoble@protonmail.com> | |
pkgname=basez | |
pkgver=1.6.2 | |
pkgrel=2 | |
pkgdesc='base 16/32/64 encode/decode data to standard output' | |
arch=('x86_64') | |
url='http://www.quarkline.net/basez/' | |
depends=('gcc-libs') | |
license=('GPL3' 'BSD' 'CCPL') | |
source=( | |
"http://www.quarkline.net/basez/download/${pkgname}-${pkgver}.tar.gz" | |
# Debian patches | |
# https://sources.debian.org/src/basez/1.6.2-1/debian/patches/ | |
"build.patch" | |
"missing-runstatedir-option.patch" | |
) | |
sha256sums=('2a9f821488791c2763ef0120c75c43dc83dd16567b7c416f30331889fd598937' | |
'0cda0fba0ac1319e6bdf9fb9c14b09bc9ad96bd0873e9feba9a4156ebe382242' | |
'a99ff69e357f13e025717cb7e080a3e17fd30110bb29f480b154b47254f35d63') | |
prepare() { | |
cd "${srcdir}/${pkgname}-${pkgver}" | |
patch --forward --input="${srcdir}/build.patch" | |
patch --forward --input="${srcdir}/missing-runstatedir-option.patch" | |
} | |
build() { | |
cd "${srcdir}/${pkgname}-${pkgver}" | |
./configure --prefix=/usr --disable-base32-command --disable-base64-command | |
make | |
} | |
package() { | |
cd "${srcdir}/${pkgname}-${pkgver}" | |
make DESTDIR="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment