summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 16 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 752bfa18a8d..7f5a6a8ae6b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
# Based on AUR3 PKGBUILD by Ken Tossell <ken@tossell.net>
pkgname=libuvc-git
-pkgver=0.0.5.r35.ge71bcbe
+pkgver=0.0.6.r6.g77b43d6
pkgrel=1
pkgdesc="a cross-platform library for USB video devices"
arch=('i686' 'x86_64')
url="https://int80k.com/libuvc/"
license=('BSD')
-depends=('libusbx')
-makedepends=('cmake')
+depends=('libusb' 'libjpeg')
+makedepends=('cmake' 'git')
source=(git+https://git@github.com/ktossell/libuvc.git)
sha256sums=('SKIP')
conflicts=('libuvc')
@@ -17,19 +17,24 @@ provides=('libuvc')
pkgver() {
cd "$srcdir/libuvc"
- # Use the tag of the last commit
git describe --long --tags | sed -E 's/v([^-]*)-([^-]*-g)/\1-r\2/;s/-/./g'
}
-build() {
- mkdir -p "${srcdir}/${pkgname}-build"
- cd "${srcdir}/${pkgname}-build"
+prepare() {
+ rm -rf "$srcdir/build"
+ mkdir -p "$srcdir/build"
+ cd "$srcdir/build"
+
+ cmake "$srcdir/libuvc" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+}
- cmake "${srcdir}/libuvc" -DCMAKE_INSTALL_PREFIX=/usr
- make
+build() {
+ make -C "$srcdir/build"
}
package() {
- cd "${srcdir}/${pkgname}-build"
- make DESTDIR="${pkgdir}" install
+ make -C "$srcdir/build" DESTDIR="${pkgdir}" install
+ install -m 644 -Dt "$pkgdir/usr/share/licenses/$pkgname" "$srcdir/libuvc/LICENSE.txt"
}