Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PKGBUILD_qtcam-git
From defa2ea2dfcc4ede1876be70be26cdb8f0b8adcf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leonard=20K=C3=B6nig?= <leonard.r.koenig@googlemail.com>
Date: Fri, 26 Feb 2016 13:33:37 +0100
Subject: [PATCH] use PKGBUILD guidelines
---
.SRCINFO | 8 ++++----
.gitignore | 6 ++++++
PKGBUILD | 24 ++++++++++--------------
3 files changed, 20 insertions(+), 18 deletions(-)
create mode 100644 .gitignore
diff --git a/.SRCINFO b/.SRCINFO
index 4a565d1..866fd91 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,18 @@
# Generated by mksrcinfo v8
-# Thu Jan 21 21:37:50 UTC 2016
+# Fri Feb 26 12:32:41 UTC 2016
pkgbase = qtcam-git
pkgdesc = A free, Open Source Linux Webcamera Software with more than 10 image control settings
- pkgver = 34326dc8
- pkgrel = 2
+ pkgver = r10.34326dc
+ pkgrel = 1
url = http://www.e-consystems.com/opensource-linux-webcam-software-application.asp
arch = i686
arch = x86_64
license = GPL
makedepends = git
makedepends = qtchooser
- makedepends = libusb
depends = qt5-declarative
depends = ffmpeg
+ depends = libusb
source = git://github.com/econsysqtcam/qtcam.git
source = codecid.patch
source = qml.patch
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e52c93c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+pkg/
+src/
+
+*.pkg*
+# source
+qtcam/
diff --git a/PKGBUILD b/PKGBUILD
index 8288fa0..6bf1e13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Piotr Rogoza <piotr dot r dot public at gmail dot com>
pkgname=qtcam-git
-pkgver=34326dc8
-pkgrel=2
+pkgver=r10.34326dc
+pkgrel=1
pkgdesc='A free, Open Source Linux Webcamera Software with more than 10 image control settings'
arch=('i686' 'x86_64')
url='http://www.e-consystems.com/opensource-linux-webcam-software-application.asp'
@@ -33,26 +33,22 @@ sha256sums=('SKIP'
'e185af699a218115b5b2b3223d6989e5abcb56293f3e19c4e57308a460c86834')
_gitname='qtcam'
prepare() {
- cd "$srcdir"/$_gitname
- patch -p1 -i "$srcdir"/codecid.patch
- patch -p1 -i "$srcdir"/qml.patch
- patch -p1 -i "$srcdir"/project.patch
+ cd "$_gitname"
+ patch -p1 -i "$srcdir/codecid.patch"
+ patch -p1 -i "$srcdir/qml.patch"
+ patch -p1 -i "$srcdir/project.patch"
}
pkgver() {
- if [ -d "$srcdir"/$_gitname ]; then
- cd "$srcdir"/$_gitname
- git describe --always | sed 's|-|.|g'
- fi
+ cd "$_gitname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir"/$_gitname/src
- msg2 "Starting make"
+ cd "$_gitname/src"
qmake
make
}
package() {
- cd "$srcdir"/$_gitname/src
- msg2 "Starting make install"
+ cd "$_gitname/src"
make INSTALL_ROOT="$pkgdir" install
install -dm755 "$pkgdir"/usr/share/qtcam/qml
install -Dm644 "$srcdir"/qtcam.desktop "$pkgdir"/usr/share/applications/qtcam.desktop
--
2.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.