summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Stalder2020-10-17 02:14:24 +0200
committerNicolas Stalder2020-10-17 02:14:24 +0200
commit73949fb474368edc2a2fdce90d885b1b54d15626 (patch)
treefab5e58326155c04c373871e7698df1067ec47e0
downloadaur-python-v4l2_antmicro.tar.gz
0.2-1
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--Makefile15
-rw-r--r--PKGBUILD24
4 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e9c83be3a02
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-v4l2_antmicro
+ pkgdesc = Python v4l2 with antmicro's patches
+ pkgver = 0.2
+ pkgrel = 1
+ url = https://github.com/antmicro/python3-v4l2
+ arch = any
+ license = GPL2
+ depends = python
+ provides = python-v4l2
+ conflicts = python-v4l2
+ source = python-v4l2::git+https://github.com/antmicro/python3-v4l2#commit=eefd091
+ sha256sums = SKIP
+
+pkgname = python-v4l2_antmicro
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..fcaa7a398a1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+python-v4l2*
+pkg/
+src/
+*.tar.*
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..d7ed13a931e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+package:
+ makepkg -f
+
+install:
+ sudo pacman --noconfirm -U python-v4l2_antmicro-*.pkg.tar.*
+
+clean:
+ rm -rf pkg src
+ rm -rf python-v4l2*
+
+update-srcinfo:
+ makepkg --printsrcinfo > .SRCINFO
+
+generate-checksums:
+ makepkg -g -f -p PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..525c7ad8fad
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Nicolas Stalder <n+archlinux@stalder.io>
+_pkgname=python-v4l2
+pkgname=${_pkgname}_antmicro
+pkgver=0.2
+pkgrel=1
+pkgdesc="Python v4l2 with antmicro's patches"
+arch=('any')
+url="https://github.com/antmicro/python3-v4l2"
+license=('GPL2')
+provides=("python-v4l2")
+conflicts=("python-v4l2")
+depends=('python')
+source=("python-v4l2::git+https://github.com/antmicro/python3-v4l2#commit=eefd091")
+sha256sums=("SKIP")
+
+build() {
+ cd "$srcdir/$_pkgname"
+ python3 setup.py build
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ python3 setup.py install --root=$pkgdir --optimize=1 --skip-build
+}