mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Maintainer: Kai Uwe Jesussek <kajot@gmx.net>
|
|
|
|
pkgname=mouse-emul-git
|
|
pkgver=20110618
|
|
pkgrel=1
|
|
plugrel=1
|
|
pkgdesc="Tiny mouse emulator"
|
|
arch=('arm' 'i686' 'x86_64')
|
|
license=('GPL2')
|
|
provides=('mouse-emul')
|
|
source=("rc-d-mouse-emul" "conf-d-mouse-emul")
|
|
md5sums=('62030a3303c2f4eb93a30b8cb81859cd'
|
|
'9771ecbee361c73e6f50b64fe1083a38')
|
|
url="https://github.com/anarsoul/mouse-emul"
|
|
makedepends=('git')
|
|
_gitroot=("https://github.com/anarsoul/mouse-emul.git")
|
|
_gitname=("mouse-emul")
|
|
|
|
build() {
|
|
cd ${srcdir}
|
|
|
|
## Git checkout
|
|
if [ -d ${srcdir}/${_gitname} ] ; then
|
|
msg "Git checkout: Updating existing tree"
|
|
cd ${_gitname} && git pull origin
|
|
msg "Git checkout: Tree has been updated"
|
|
else
|
|
msg "Git checkout: Retrieving sources"
|
|
git clone ${_gitroot}
|
|
fi
|
|
msg "Checkout completed"
|
|
|
|
## Build
|
|
rm -rf ${srcdir}/${_gitname}-build
|
|
cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
|
|
cd ${srcdir}/${_gitname}-build
|
|
make DESTDIR=${pkgdir} install
|
|
mkdir -p ${pkgdir}/etc/rc.d ${pkgdir}/etc/conf.d
|
|
cp ${srcdir}/rc-d-mouse-emul ${pkgdir}/etc/rc.d/mouse-emul
|
|
cp ${srcdir}/conf-d-mouse-emul ${pkgdir}/etc/conf.d/mouse-emul
|
|
touch ${pkgdir}/etc/mouse-emulrc
|
|
}
|
|
package() {
|
|
true
|
|
}
|