Advertisement
Eliminater74

apkstudio

Jan 28th, 2020
879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.45 KB | None | 0 0
  1. # Maintainer:  Eliminater74 <eliminater74@gmail.com>
  2. # Contributor:  < >
  3.  
  4. _pkgname=apkstudio
  5. pkgname=$_pkgname-git
  6. pkgver=r293.8baa7d5
  7. pkgrel=1
  8. epoch=1
  9. pkgdesc='An IDE for decompiling/editing & then recompiling of android application binaries.'
  10. arch=('i686' 'x86_64')
  11. url='http://www.vaibhavpandey.com/apkstudio/'
  12. license=('GPL2')
  13. depends=('qt5-base' 'android-tools')
  14. makedepends=('git' 'qt5-tools' 'unzip')
  15. source=('git+https://github.com/vaibhavpandeyvpz/apkstudio.git'
  16.         'git+https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle.git'
  17.         'git+https://github.com/Dax89/QHexView.git')
  18. sha256sums=('SKIP'
  19.             'SKIP'
  20.             'SKIP')
  21.  
  22. pkgver() {
  23.   cd "$srcdir/$_pkgname"
  24.   printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  25. }
  26.  
  27. prepare() {
  28.   cd "$srcdir/$_pkgname"
  29.   git submodule init
  30.   git config submodule.Qt-Frameless-Window-DarkStyle.url $srcdir/Qt-Frameless-Window-DarkStyle
  31.   git config submodule.QHexView.url $srcdir/QHexView
  32.   git submodule update
  33. }
  34.  
  35. build() {
  36.   cd "$srcdir/$_pkgname/build"
  37.   qmake-qt5 -r ../apkstudio.pro CONFIG+=release PREFIX=/usr
  38.   make -j$(nproc)
  39. }
  40.  
  41. package() {
  42.   cd "$srcdir"
  43.   install -Dm755 "$_pkgname/build/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
  44.   install -Dm755 "$_pkgname/resources/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
  45.   install -Dm755 "$_pkgname/resources/icon.png" "$pkgdir/usr/share/pixmaps/icon.png"
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement