diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1,10 +1,11 @@ +# Maintainer: Filipe Bertelli <filipebertelli@tutanota.com> # Contributor: scrouthtv <scrouthtv 0x40 gmail 0x2e com> # Contributor: LinRs <LinRs at users.noreply.github.com> # Contributor: Gavin Lloyd <gavinhungry@gmail.com> pkgname=androidscreencast-bin _pkgname=androidscreencast -pkgver=0.0.16s +pkgver=0.1 pkgrel=1 pkgdesc='Desktop app to control an android device remotely using mouse and keyboard' arch=('any') @@ -13,12 +14,24 @@ license=('Apache') depends=('java-runtime>=7' 'android-tools') source=("${pkgname}-${pkgver}.tgz"::"https://github.com/xSAVIKx/AndroidScreencast/releases/download/v$pkgver/androidscreencast-$pkgver-linux.tar.gz" 'androidscreencast') -sha256sums=('1ce667c1d0a201232cc7a72801003569559070d09600ea320599264d00240ec2' +sha256sums=('07e5982d430a431e55528ef7d7b385fbf9d634adbc53249e4d97b72ca1128253' '7f9ae071315067a3f90eb37e52c69125bd8a332f51dc179ef67847853b0a2c0d') package() { cd "${srcdir}/${_pkgname}-${pkgver}" + + # Install Java file install -Dm644 "${_pkgname}-${pkgver}-executable.jar" "${pkgdir}"/usr/share/java/"${_pkgname}/${_pkgname}.jar" + + # Fix `adb` executable path and install app.properties + adb_path=$(which adb) + echo "ADB executable was located at: $adb_path" + echo "Fixing 'app.properties' file ..." + sed -i "s#./adb#$adb_path#" app.properties + install -Dm644 "app.properties" "${pkgdir}/usr/share/java/${_pkgname}/app.properties" + echo "'app.properties' file will be installed to /usr/share/java/${_pkgname}/app.properties" + + # Install launcher cd "${srcdir}" install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" } |