diff options
author | Markdols | 2023-12-13 17:25:31 -0600 |
---|---|---|
committer | Markdols | 2023-12-13 17:25:31 -0600 |
commit | fcf935a9bf44b874c4d5840e05e9a3df814b8954 (patch) | |
tree | 0edfdac0ef06d656ae30902bf1babbf86913f771 /PKGBUILD | |
parent | 8bb5aad2b83007af038d6df85fa9a8b909da8f82 (diff) | |
download | aur-fcf935a9bf44b874c4d5840e05e9a3df814b8954.tar.gz |
Added install script that cleans up toolchains and symlinks when removing the package
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,7 +3,7 @@ _pkgname=swiftly pkgname=swiftly-bin pkgver=0.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="A Swift toolchain installer and manager, written in Swift." arch=('x86_64') url="https://swift-server.github.io/swiftly/" @@ -15,6 +15,7 @@ provides=(swift-language) conflicts=(swift-language) source=("https://github.com/swift-server/${_pkgname}/releases/download/${pkgver}/${_pkgname}-x86_64-unknown-linux-gnu") sha256sums=('b3ef4e3d652a622af8f5ec54c1264e0ad9de37fa26e81cfe70649833c0039e45') +install='swiftly-bin.install' package() { mkdir -p ~/.local/share/${_pkgname}/toolchains @@ -23,5 +24,5 @@ package() { fi install -D -m 0755 ${_pkgname}-x86_64-unknown-linux-gnu ${pkgdir}/usr/bin/${_pkgname} echo "Config and toolchains can be found in ~/.local/share/swiftly. Toolchains are installed to ~/.local/bin." - echo "If you decide to uninstall, be sure to remove all toolchains first with \"swiftly uninstall (toolchain)\"." + echo "Please do not modify ~/.local/share/swiftly/toolchains. That directory should only be managed by swiftly itself." } |