chore: satisfy shellcheck

This commit is contained in:
Christian Schendel 2025-09-09 14:22:24 +02:00
parent 0ef20cd114
commit fbcc8ef540
Signed by: doppelhelix
GPG key ID: 5874D2437CD5BBB3

View file

@ -53,21 +53,21 @@ if [ "$CARCH" = "i686" ]; then
fi
package() {
cd $srcdir/$pkgname
cd "$srcdir/$pkgname"
# Install the application
install -d $pkgdir/{opt/$pkgname,usr/bin}
cp -a bin lib jbr plugins license LICENSE.txt build.txt product-info.json $pkgdir/opt/$pkgname
ln -s /opt/android-studio/bin/studio $pkgdir/usr/bin/$pkgname
install -d "$pkgdir/{opt/$pkgname,usr/bin}"
cp -a bin lib jbr plugins license LICENSE.txt build.txt product-info.json "$pkgdir/opt/$pkgname"
ln -s /opt/android-studio/bin/studio "$pkgdir/usr/bin/$pkgname"
# Copy licenses
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
install -Dm644 $srcdir/license.html "${pkgdir}/usr/share/licenses/${pkgname}/license.html"
install -Dm644 "$srcdir/license.html" "${pkgdir}/usr/share/licenses/${pkgname}/license.html"
# Add the icon and desktop file
install -Dm644 bin/studio.png $pkgdir/usr/share/pixmaps/$pkgname.png
install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
install -Dm644 bin/studio.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
chmod -R ugo+rX $pkgdir/opt
chmod -R ugo+rX "$pkgdir/opt"
}
# vim: set ft=sh ts=4 sw=4 et: