summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98682d3e33ea3a6ccde5be2a89185c9185b208ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: vinibali <vinibali1 at gmail dot com>

pkgname=adbcontrol
pkgver=0.1
pkgrel=2
pkgdesc="Remote control your Android phone through adb"
arch=(i686 x86_64)
url="http://marian.schedenig.name/2014/07/03/remote-control-your-android-phone-through-adb/"
license=('Eclipse Public Licence')
depends=(jre7-openjdk)
source=(http://marian.schedenig.name/wp-content/uploads/adbcontrol.zip)
md5sums=(a6fafab5525a8e02450b4456ea3ec141)

build()
	{
	echo "###############################################"
	echo "No build requied, precompiled jar is avaliable,"
	echo "standard values has been placed in config file."
	echo "###############################################"
	}	

package()
	{
	mkdir -p "${pkgdir}"/opt/adbcontrol
	mkdir -p "${pkgdir}"/usr/bin
	echo -e 'adbCommand = /usr/bin/adb\nscreenshotDelay = 10\nlocalImageFilePath = /tmp/adbcontrol_screenshot.png\nphoneImageFilePath = /mnt/sdcard/adbcontrol_screenshot.png' > "${pkgdir}"/opt/adbcontrol/config.properties
	echo -e '#!/bin/bash\ncd /opt/adbcontrol\njava -jar adbcontrol.jar' > "${pkgdir}"/usr/bin/adbcontrol
	chmod +x "${pkgdir}"/usr/bin/adbcontrol
	cp -a "${srcdir}"/src "${pkgdir}"/opt/adbcontrol/
	install -Dm755 "${srcdir}"/adbcontrol.jar "${pkgdir}"/opt/adbcontrol/adbcontrol.jar
	install -Dm755 "${srcdir}"/epl-v10.html "${pkgdir}"/opt/adbcontrol/epl-v10.html
	}