Package Details: a4tool-git 20150203-1

Git Clone URL: https://aur.archlinux.org/a4tool-git.git (read-only)
Package Base: a4tool-git
Description: Tools for control your smart mouse. A4Tech G10-700F, and other "Oscar mouse's".
Upstream URL: https://github.com/Marisa-Chan/init-gmouse
Licenses: BSD
Submitter: xRemaLx
Maintainer: xRemaLx
Last Packager: xRemaLx
Votes: 10
Popularity: 0.043033
First Submitted: 2012-11-23 22:30
Last Updated: 2015-06-08 08:21

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

der_fenix commented on 2014-12-20 20:32

Updated PKGBUILD

# Maintainer: xRemaLx <anton.komolov@gmail.com>

pkgname=a4tool-git
pkgver=20141220
pkgrel=1
pkgdesc="Tools for control your smart mouse. A4Tech G10-700F, and other \"Oscar mouse's\"."
arch=('x86_64' 'i686')
url="https://github.com/Marisa-Chan/init-gmouse"
license=('BSD')
options=('!strip' '!emptydirs')
depends=("libusbx>=1.0")
source=("40-a4tech-usb-devices.rules")
md5sums=("38c96db4897f72fe1c8cc898d0282114")
_gitroot="git://github.com/Marisa-Chan/init-gmouse.git"
_gitname="init-gmouse"

build() {
cd "$srcdir"

msg "Connecting to the $_gitname git repository..."
if [ -d "$srcdir/$_gitname" ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi

msg "GIT checkout done or server timeout"
cd "$srcdir"
rm -rf $_gitname-build
git clone $_gitname $_gitname-build
cd "$_gitname-build"
cd libgmouse
make
cd ../a4tool
make
}

package() {
install -D -m644 "40-a4tech-usb-devices.rules" "$pkgdir/usr/lib/udev/rules.d/40-a4tech-usb-devices.rules"
install -D -m755 "$_gitname-build/a4tool/a4tool" "$pkgdir/usr/bin/a4tool"
install -D -m755 "$_gitname-build/a4_toold/a4_toold.sh" "$pkgdir/usr/bin/a4_toold.sh"
install -D -m755 "$_gitname-build/a4_toold/Mouse.png" "$pkgdir/usr/share/pixmaps/Mouse.png"
install -D -m755 "$_gitname-build/a4_toold/Keyboard.png" "$pkgdir/usr/share/pixmaps/Keyboard.png"
install -D -m755 "$_gitname-build/a4_toold/a4_toold.conf" "$pkgdir/etc/a4_toold.conf"
}

# vim:set ts=2 sw=2 et: