diff options
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f362f39789ff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = raspicam + pkgdesc = C++ API for using Raspberry camera (with OpenCV) + pkgver = 0.1.8 + pkgrel = 1 + url = http://www.uco.es/investiga/grupos/ava/node/40 + arch = i686 + arch = x86_64 + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 + license = BSD + makedepends = git + depends = vtk + provides = raspicam + conflicts = raspicam + replaces = raspicam + source = https://downloads.sourceforge.net/project/raspicam/raspicam-0.1.8.zip + sha256sums = 08caa22fbe4d71296c0348855a6ea629477b5cfb08648c93bd5ea55b606656cf + +pkgname = raspicam + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..afe627c5a896 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Matteo De Carlo matteo <dot> dek <at> gmail +pkgname=raspicam +pkgver=0.1.8 +pkgrel=1 +pkgdesc="C++ API for using Raspberry camera (with OpenCV)" +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') +url="http://www.uco.es/investiga/grupos/ava/node/40" +license=('BSD') +groups=() +depends=('vtk') +makedepends=('git') +provides=("${pkgname}") +conflicts=("${pkgname}") +replaces=("${pkgname}") +backup=() +options=() +source=("https://downloads.sourceforge.net/project/raspicam/raspicam-${pkgver}.zip") +sha256sums=('08caa22fbe4d71296c0348855a6ea629477b5cfb08648c93bd5ea55b606656cf') + +prepare() { + cd "$srcdir/${pkgname}-${pkgver}" + find -name '*.cpp' -exec sed -i 's/CV_CAP/cv::CAP/g' {} + + mkdir -p build + cd build + cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/usr" .. +} + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + cd build + make +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + cd build + make install +} |