# Maintainer: Filipe Bertelli # Contributor: scrouthtv # Contributor: LinRs # Contributor: Gavin Lloyd pkgname=androidscreencast-bin _pkgname=androidscreencast pkgver=0.1 pkgrel=1 pkgdesc='Desktop app to control an android device remotely using mouse and keyboard' arch=('any') url='https://github.com/xSAVIKx/AndroidScreencast' 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=('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}" }