added initial set of pkgbuilds

This commit is contained in:
Sven Schneider 2012-04-06 17:09:12 +02:00
commit a88d0c2636
3 changed files with 77 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = linect-git
pkgdesc = An Open Source Kinect Linux module driver compatible with Video4Linux 2
pkgver = 20101209
pkgrel = 1
url = https://github.com/berfenger/linect
install = linect-git.install
arch = i686
arch = x86_64
license = GPL
makedepends = kernel26-headers
makedepends = git
provides = linect
conflicts = linect
pkgname = linect-git

44
PKGBUILD Normal file
View file

@ -0,0 +1,44 @@
# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
pkgname=linect-git
pkgver=20101209
pkgrel=1
pkgdesc="An Open Source Kinect Linux module driver compatible with Video4Linux 2"
arch=('i686' 'x86_64')
url="https://github.com/berfenger/linect"
license=('GPL')
depends=()
makedepends=('kernel26-headers' 'git')
provides=('linect')
conflicts=('linect')
source=()
install="${pkgname}.install"
md5sums=()
_gitroot="git://github.com/berfenger/linect.git"
_gitname="linect"
build() {
cd "${srcdir}"
if [ ! -d "${srcdir}/${_gitname}" ]; then
git clone ${_gitroot}
else
cd ${_gitname} && git pull origin
fi
msg "GIT checkout done."
rm -rf "${srcdir}/${_gitname}-build"
cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
cd "${srcdir}/${_gitname}-build"
make
}
package() {
cd "${srcdir}/${_gitname}-build"
install -Dm644 linect.ko "${pkgdir}/lib/modules/`uname -r`/kernel/drivers/misc/linect.ko"
}

17
linect-git.install Normal file
View file

@ -0,0 +1,17 @@
post_install() {
echo "Note: The driver is still in development"
echo ""
echo "Load the driver manually via 'modprobe linect'"
echo "Add it to the MODULES array in /etc/rc.conf for automatic loading on system startup"
echo ""
/sbin/depmod -a
}
post_upgrade() {
post_install
}
post_remove() {
/sbin/depmod -a
}