diff options
author | Rasmus Karlsson | 2020-12-20 16:15:33 +0100 |
---|---|---|
committer | Rasmus Karlsson | 2020-12-20 16:15:33 +0100 |
commit | 187c72ae7382a39f0aecfbb80fbde5fa85263cdd (patch) | |
tree | 25f6f0f8afb60cccf9099509dab94291b8eff3ad | |
parent | c507eba111ef3cb745e06892fb65fa86b9051dd7 (diff) | |
download | aur-187c72ae7382a39f0aecfbb80fbde5fa85263cdd.tar.gz |
Handle both ccache and non-ccache builds
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -69,7 +69,15 @@ build() { package() { cd "$srcdir/chatterino2" - install -Dm755 "build/bin/chatterino" "$pkgdir/usr/bin/chatterino" + if [ -f "build/bin/chatterino" ] && [ -x "build/bin/chatterino" ]; then + echo "Getting chatterino binary from bin folder" + install -Dm755 "build/bin/chatterino" "$pkgdir/usr/bin/chatterino" + else + echo "Getting chatterino binary from NON-BIN folder" + # System ccache is enabled, causing the binary file to not fall into the bin folder + # Temporary solution until we have figured out a way to stabilize the ccache output + install -Dm755 "build/chatterino" "$pkgdir/usr/bin/chatterino" + fi install -Dm644 "resources/com.chatterino.chatterino.desktop" "$pkgdir/usr/share/applications/com.chatterino.chatterino.desktop" install -Dm644 "resources/icon.png" "$pkgdir/usr/share/pixmaps/chatterino.png" } |