diff options
author | zxp19821005 | 2024-04-23 10:38:41 +0800 |
---|---|---|
committer | zxp19821005 | 2024-04-23 10:38:41 +0800 |
commit | bb3f7fc14290334a6df12e3bdc44eced2f131adc (patch) | |
tree | a1850b8cf1441dadb53ecb8a9e0596f3e4380ac9 /PKGBUILD | |
parent | f5efbb9dfe4f1424d7f610eebef103624078f8e0 (diff) | |
download | aur-apk-editor-studio-bin.tar.gz |
fix errors
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 84 |
1 files changed, 51 insertions, 33 deletions
@@ -1,40 +1,58 @@ -# Maintainer: Filipe Bertelli <filipebertelli@tutanota.com> +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +# Contributor: Filipe Bertelli <filipebertelli@tutanota.com> # Contributor: Dimitris Kiziridis <ragouel at outlook dot com> - pkgname=apk-editor-studio-bin +_appname=application-vnd.android.package-archive pkgver=1.7.1 -pkgrel=1 -pkgdesc="Powerful yet easy to use APK editor" +pkgrel=2 +pkgdesc="A powerful yet easy to use APK reverse-engineering tool" arch=('x86_64') provides=("${pkgname%-bin}") -url='https://github.com/kefir500/apk-editor-studio' -license=('GPL3') -depends=('qt5-base' - 'java-runtime>=8' - 'hicolor-icon-theme' - 'android-sdk-build-tools' - 'android-sdk-platform-tools') -optdepends=('libsecret: Enable password manager backend') -source=("https://github.com/kefir500/apk-editor-studio/releases/download/v${pkgver}/apk-editor-studio_linux_${pkgver}.AppImage") -sha256sums=('548cdee09e9951b577c0f2b9818ba90dbedef13ca4d57a7e20eab488c5ab1892') - -prepare() { - chmod +x "${pkgname%-bin}_linux_$pkgver.AppImage" - ./"${pkgname%-bin}_linux_$pkgver.AppImage" --appimage-extract - - # Remove X-AppImage-Version - sed -i '/AppImage/d' "squashfs-root/${pkgname%-bin}.desktop" +url="https://qwertycube.com/apk-editor-studio/" +_ghurl='https://github.com/kefir500/apk-editor-studio' +license=('GPL-3.0-only') +provides=("${pkgname%-bin}=${pkgver}") +conflicts=("${pkgname%-bin}") +depends=( + 'qt5-base' + 'java-runtime>=8' + 'android-sdk-build-tools' + 'android-sdk-platform-tools' + 'libusb' + 'android-apktool' +) +makedepends=( + 'fuse2' +) +optdepends=( + 'libsecret: Enable password manager backend' +) +options=( + '!strip' + '!emptydirs' +) +source=( + "${pkgname%-bin}-${pkgver}.AppImage::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}_linux_${pkgver}.AppImage" + "${pkgname%-bin}.sh" +) +sha256sums=('548cdee09e9951b577c0f2b9818ba90dbedef13ca4d57a7e20eab488c5ab1892' + '7b0831f35c90ccd21f71c30ba84a5f91371a12302afe6262df6ad7af66bd1e70') +build() { + sed -e "s|@appname@|${pkgname%-bin}|g" \ + -e "s|@runname@|${pkgname%-bin}|g" \ + -i "${srcdir}/${pkgname%-bin}.sh" + chmod a+x "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" + "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" --appimage-extract > /dev/null } - package() { - install -d "$pkgdir/usr/bin" - install -Dm755 "squashfs-root/usr/bin/${pkgname%-bin}" -t "$pkgdir/usr/bin/" - - install -Dm644 "squashfs-root/${pkgname%-bin}.desktop" -t "$pkgdir/usr/share/applications/" - - install -d "$pkgdir/usr/share/${pkgname%-bin}" - cp -r "squashfs-root/usr/share/${pkgname%-bin}/" "$pkgdir/usr/share/" - - install -d "$pkgdir/usr/share/icons/" - cp -r squashfs-root/usr/share/icons/hicolor/ "$pkgdir/usr/share/icons/" -} + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm755 -d "${pkgdir}/opt/${pkgname%-bin}" + cp -r "${srcdir}/squashfs-root/usr/"{bin,lib,plugins} "${pkgdir}/opt/${pkgname%-bin}" + install -Dm644 "${srcdir}/squashfs-root/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" + for _icons in 16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512;do + install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \ + -t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps" + install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/mimetypes/${_appname}.png" \ + -t "${pkgdir}/usr/share/icons/hicolor/${_icons}/mimetypes" + done +}
\ No newline at end of file |