diff options
author | davidovski <david@davidovski.xyz> | 2022-06-04 15:08:04 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-04 15:08:04 +0100 |
commit | 873665024ebfaa761ee49b508a79db7178aeb778 (patch) | |
tree | 6cd3b4ce3a9f4b0586ffa48e73a6ba4c8da2db43 /repo/bash-completion/bash-completion.xibuild | |
parent | 4445f6e15185f58dc599390ab74df3ca19b437b7 (diff) |
added gnupg
Diffstat (limited to 'repo/bash-completion/bash-completion.xibuild')
-rw-r--r-- | repo/bash-completion/bash-completion.xibuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/repo/bash-completion/bash-completion.xibuild b/repo/bash-completion/bash-completion.xibuild new file mode 100644 index 0000000..0b4b0d7 --- /dev/null +++ b/repo/bash-completion/bash-completion.xibuild @@ -0,0 +1,43 @@ +#!/bin/sh + +NAME="bash-completion" +DESC="Command-line tab-completion for bash" + +MAKEDEPS="autoconf automake bc grep procps-ng psmisc sed usbutils" + +PKG_VER=2.11 +SOURCE="https://github.com/scop/bash-completion/releases/download/$PKG_VER/bash-completion-$PKG_VER.tar.xz" + +prepare() { + default_prepare + + # ifup/down tests are still failing + rm $BUILD_ROOT/test/t/test_ifdown.py + rm $BUILD_ROOT/test/t/test_ifup.py + sed -i '/test_ifdown.py \\/d' $BUILD_ROOT/test/t/Makefile.am + sed -i '/test_ifup.py \\/d' $BUILD_ROOT/test/t/Makefile.am + autoreconf -fiv +} + +build() { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +package() { + make -j1 DESTDIR="$PKG_DEST" install + + mkdir -p "$PKG_DEST"/usr/share/doc/bash-completion/ + install -m644 AUTHORS CHANGES CONTRIBUTING.md README.md \ + "$PKG_DEST"/usr/share/doc/bash-completion/ + + cd "$PKG_DEST"/usr/share/bash-completion/completions + for c in $_conflicting; do + rm -f $c + done +} + |