Dear AUR users, I wrote a PKGBUILD for "TouchControl For Android" (https://github.com/ternes3/TouchControl-for-Android) and I think this might be useful to others.
Since this is my first one to publish I would like some advice/corrections for it before I am going to publish it. Cheers Jens Heyens
Copyright (c) 2014 ternes3 / reBTSOFT
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
# Maintainer: Jens Heyens <s8jeheye _AT_ stud _._ uni _-_ saarland _._ de>
# PGP-ID: 0x63A18304
pkgname=touchcontrol-android-git
pkgver=1.0_3_gea79038
pkgrel=1
pkgdesc="A simple software to control your android device over adb."
arch=('x86_64')
license=('custom:"Copyright (c) 2014 ternes3 / reBTSOFT"
src:https://github.com/ternes3/TouchControl-for-Android#license')
url="https://github.com/ternes3/TouchControl-for-Android"
depends=("qt4" "boost-libs")
_gitsrc=https://github.com/ternes3/TouchControl-for-Android.git
install=$pkgname.install
source=($pkgname::"git+$_gitsrc")
sha256sums=('SKIP')
pkgver(){
cd $pkgname
git describe --long --tags | sed -e 's#-#_#g' -e 's#^v##'
}
build() {
cd $srcdir
cd $pkgname
if [ ! -d out ] ; then
mkdir out
fi
sed -i -e 's#TARGET =#TARGET = ./out/touchcontrol#' touchcontrol.pro
make -j $((1+`nproc`))
}
package() {
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/share/licenses/$pkgname/
cp $srcdir/$pkgname/out/touchcontrol "$pkgdir/usr/bin/."
cp ../LICENSE $pkgdir/usr/share/licenses/$pkgname/.
}
signature.asc
Description: OpenPGP digital signature
