pkgname="android-studio" pkgver="2025.1.2.12" arch=("amd64") repology=("project: ${pkgname}" "repo: aur" "visiblename: ${pkgname}") replaces=("${pkgname}" "${pkgname}-beta" "${pkgname}-canary") depends=("libc6-i386" "lib32ncurses6" "lib32stdc++6" "lib32z1" "libbz2-1.0:i386") maintainer=("Oren Klopfer " "James Ed Randson ") pkgdesc="Android Studio is the official integrated development environment (IDE) for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and designed specifically for Android development" source=( "@${pkgname}~${pkgver}::https://dl.google.com/dl/android/studio/ide-zips/${pkgver}/${pkgname}-${pkgver}-linux.tar.gz" "${pkgname}.desktop::https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/${pkgname}/${pkgname}.desktop" ) sha256sums=( "7cb8c26c1f56c2bc7bb226104e6b56bdc7bef137584de6becba1d3b524d85806" "SKIP" ) package() { cd "${pkgname}~${pkgver}" # Moving all android studio files to /opt install -d "${pkgdir}/opt/${pkgname}" cp -a bin lib jbr plugins license LICENSE.txt build.txt product-info.json "${pkgdir}/opt/${pkgname}" # Creating a launcher in $PATH install -d "${pkgdir}/usr/bin" install -d "${pkgdir}/usr/share/applications" install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" install -Dm644 bin/studio.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png" chmod -R ugo+rX "${pkgdir}/opt" mkdir -p "${pkgdir}/usr/bin" ln -sf "/opt/${pkgname}/bin/studio" "${pkgdir}/usr/bin/${pkgname}" } post_install() { sudo update-desktop-database -q # Finished installation fancy_message info "Finished installation. Please start Android Studio to configure it!" } post_remove() { sudo update-desktop-database -q }