diff options
Diffstat (limited to 'ouch-git/PKGBUILD')
-rw-r--r-- | ouch-git/PKGBUILD | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/ouch-git/PKGBUILD b/ouch-git/PKGBUILD index 8e036ce..7a33f12 100644 --- a/ouch-git/PKGBUILD +++ b/ouch-git/PKGBUILD | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | pkgname=ouch-git | 3 | pkgname=ouch-git |
4 | _pkgname=${pkgname%-git} | 4 | _pkgname=${pkgname%-git} |
5 | pkgver=r397.abf1d4e | 5 | pkgver=r693.d4f181b |
6 | pkgrel=1 | 6 | pkgrel=1 |
7 | pkgdesc="Painless compression and decompression in the terminal (git version)" | 7 | pkgdesc="Painless compression and decompression in the terminal (git version)" |
8 | arch=('x86_64') | 8 | arch=('x86_64') |
@@ -28,7 +28,7 @@ build() { | |||
28 | cd "$srcdir/${_pkgname}" | 28 | cd "$srcdir/${_pkgname}" |
29 | export RUSTUP_TOOLCHAIN=stable | 29 | export RUSTUP_TOOLCHAIN=stable |
30 | export CARGO_TARGET_DIR=target | 30 | export CARGO_TARGET_DIR=target |
31 | GEN_COMPLETIONS=1 cargo build --frozen --release --all-features | 31 | OUCH_ARTIFACTS_FOLDER=artifacts cargo build --frozen --release --all-features |
32 | } | 32 | } |
33 | 33 | ||
34 | check() { | 34 | check() { |
@@ -39,13 +39,20 @@ check() { | |||
39 | 39 | ||
40 | package() { | 40 | package() { |
41 | cd "$srcdir/${_pkgname}" | 41 | cd "$srcdir/${_pkgname}" |
42 | |||
42 | install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${_pkgname}" | 43 | install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${_pkgname}" |
43 | install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE" | 44 | install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE" |
44 | 45 | ||
45 | cd target/release/build/ouch-*/out/completions | 46 | cd artifacts |
46 | sed -i "s/':output -- The resulting file. It's extensions can be used to specify the compression formats:_files'/\":output -- The resulting file. It's extensions can be used to specify the compression formats:_files\"/" _ouch | 47 | |
48 | # install manpages | ||
49 | install -Dm0644 "${_pkgname}.1" -t "${pkgdir}/usr/share/man/man1" | ||
50 | install -Dm0644 "${_pkgname}-compress.1" -t "${pkgdir}/usr/share/man/man1" | ||
51 | install -Dm0644 "${_pkgname}-decompress.1" -t "${pkgdir}/usr/share/man/man1" | ||
52 | install -Dm0644 "${_pkgname}-list.1" -t "${pkgdir}/usr/share/man/man1" | ||
47 | 53 | ||
48 | install -Dm0644 ${_pkgname}.bash "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}" | 54 | # install shell completions |
49 | install -Dm0644 ${_pkgname}.fish "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish" | 55 | install -Dm0644 "${_pkgname}.bash" "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}" |
50 | install -Dm0644 _${_pkgname} "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}" | 56 | install -Dm0644 "${_pkgname}.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish" |
57 | install -Dm0644 "_${_pkgname}" "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}" | ||
51 | } | 58 | } |