summaryrefslogtreecommitdiff
path: root/opt/bash-completion/MAKEPKG
blob: c544bf2f1710f703f1b1d508a0e283fbc2be164a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/mkpkg
# description: Programmable completion functions for bash
# url:         https://github.com/scop/bash-completion

name=bash-completion
version=2.17.0
release=1

source=(
    "https://github.com/scop/bash-completion/releases/download/${version}/bash-completion-${version}.tar.xz"
)

sha256sums=(
    "dd9d825e496435fb3beba3ae7bea9f77e821e894667d07431d1d4c8c570b9e58"
)

patch() {
    cd bash-completion-${version}
}

build() {
    cd bash-completion-${version}

    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --with-bash-completion-dir=/usr/share/bash-completion/completions

    make
    make DESTDIR="${PKG}" install

    rm -f "${PKG}/etc/bash_completion"
    #rm -f "${PKG}/etc/profile.d/bash_completion.sh"
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh