diff options
author | Techcable | 2022-08-17 21:54:28 -0700 |
---|---|---|
committer | Techcable | 2022-08-17 22:09:49 -0700 |
commit | 7108475a9601b50b9d8701021a1e7bc459515b2e (patch) | |
tree | 5feb5d6fff0557e7e2327141685f247b7c31d484 | |
parent | d22ebb579c02bf7faae88d3d1d4a5bd0b2083b99 (diff) | |
download | aur-7108475a9601b50b9d8701021a1e7bc459515b2e.tar.gz |
Rename binary from senpai-irc -> senpai
Theoretically conflicts with senpai package (which has low usage)
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 14 insertions, 2 deletions
@@ -9,6 +9,7 @@ pkgbase = senpai-irc makedepends = go makedepends = scdoc conflicts = senpai-irc-git + conflicts = senpai source = senpai-v0.1.0.tar.gz::https://git.sr.ht/~taiite/senpai/archive/v0.1.0.tar.gz sha256sums = 98e1f16ed97433e1e8c8bdabac1cac1920ddcab90e6cef36d8817a41b45a94ff @@ -8,7 +8,16 @@ pkgdesc='TUI IRC Client Created by ~taiite' url=https://sr.ht/~taiite/senpai/ arch=(x86_64 aarch64) license=('ISC') -conflicts=("senpai-irc-git") +# NOTE: The `senpai` package is unrelated, but provides a binary with a similar name +# +# As a result, our packages conflicts. Both packages seem to be low-usage in practice, +# so I am going to stick with the binary's original name. +# +# Please comment on the AUR board or email me if you want to install both packages and +# this is an issue for you (I'm sure I can work something out) +# +# Also the binary is aliased to "senpai-irc" as a secondary name +conflicts=('senpai-irc-git' 'senpai') makedepends=('go' 'scdoc') source=( "senpai-v${pkgver}.tar.gz::https://git.sr.ht/~taiite/senpai/archive/v0.1.0.tar.gz" @@ -36,8 +45,10 @@ package () { mkdir -p "${pkgdir}/usr/bin" mkdir -p "${pkgdir}/usr/share/man/man1" mkdir -p "${pkgdir}/usr/share/man/man5" - cp "${srcdir}/senpai-v${pkgver}/senpai" "${pkgdir}/usr/bin/senpai-irc" + cp "${srcdir}/senpai-v${pkgver}/senpai" "${pkgdir}/usr/bin/senpai" cp "${srcdir}/senpai-v${pkgver}/doc/senpai.1" "${pkgdir}/usr/share/man/man1/" cp "${srcdir}/senpai-v${pkgver}/doc/senpai.5" "${pkgdir}/usr/share/man/man5/" + # Alias binary as "senpai-irc" (gives compat with senpai-irc-git) + ln -s "${pkgdir}/usr/bin/senpai" "senpai-irc" } |