diff options
author | Linus Dierheimer | 2020-05-09 15:53:30 +0200 |
---|---|---|
committer | Linus Dierheimer | 2020-05-09 15:53:30 +0200 |
commit | 41c425db55176a213ab80f69e8838745476d48af (patch) | |
tree | d2cc1b51be0c4d392ebb0894a89cd40825bd4677 /PKGBUILD | |
parent | 0c12e060c5f1534d8a07f033d40823528bc936e9 (diff) | |
download | aur-41c425db55176a213ab80f69e8838745476d48af.tar.gz |
conflict with pipes.sh
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 20 insertions, 8 deletions
@@ -2,22 +2,34 @@ pkgname=bash-pipes pkgver=1.3.0 -pkgrel=2 -pkgdesc="Pipes screensaver for bash" +pkgrel=3 +pkgdesc="pipes.sh with a better name" arch=("any") url="https://github.com/pipeseroni/pipes.sh" license=("MIT") depends=("bash") source=("https://github.com/pipeseroni/pipes.sh/archive/v${pkgver}.tar.gz") sha256sums=("532976dd8dc2d98330c45a8bcb6d7dc19e0b0e30bba8872dcce352361655a426") +provides=("pipes.sh") +conflicts=("pipes.sh=1.3.0") + +_alternative_names=( + "pipes" + "bash-pipes" +) + package() { cd "${srcdir}/pipes.sh-${pkgver}" - make DESTDIR="$pkgdir" PREFIX=/usr install - #contain backwards compatibility with old aur versions - ln -sf "/usr/bin/pipes.sh" "${pkgdir}/usr/bin/pipes" - ln -sf "/usr/bin/pipes.sh" "${pkgdir}/usr/bin/bash-pipes" + make DESTDIR="${pkgdir}" PREFIX=/usr install + install -Dm644 -t "${pkgdir}/usr/share/doc/pipes.sh" LICENSE + install -Dm644 -t "${pkgdir}/usr/share/doc/pipes.sh" README.rst - ln -sf "/usr/share/man/man6/pipes.sh.6.gz" "${pkgdir}/usr/share/man/man6/pipes.6.gz" - ln -sf "/usr/share/man/man6/pipes.sh.6.gz" "${pkgdir}/usr/share/man/man6/bash-pipes.6.gz" + #Cooler names and backwards compatibility with old bash-pipes + for name in "${_alternative_names[@]}" + do + ln -sf "/usr/bin/pipes.sh" "${pkgdir}/usr/bin/${name}" + ln -sf "/usr/share/man/man6/pipes.sh.6.gz" "${pkgdir}/usr/share/man/man6/${name}.6.gz" + ln -sf "/usr/share/doc/pipes.sh" "${pkgdir}/usr/share/doc/${name}" + done } |