summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD27
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..aab9fbad7c9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = imageclipper-git
+ pkgdesc = An imageclipper intended for using when creating OpenCV haar cascade sample images.
+ pkgver = 1.0.1
+ pkgrel = 1
+ url = https://github.com/JoakimSoderberg/imageclipper
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = cmake>=3.1.3-1
+ depends = opencv>=3.1.0-2
+ depends = boost>=1.66.0-1
+ depends = boost-libs>=1.66.0-1
+ source = git+https://github.com/JoakimSoderberg/imageclipper.git
+ md5sums = SKIP
+
+pkgname = imageclipper-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..42340113ae1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Derek Brown <derek@allderek.com>
+
+pkgname=imageclipper-git
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="An imageclipper intended for using when creating OpenCV haar cascade sample images."
+url="https://github.com/JoakimSoderberg/imageclipper"
+arch=('x86_64' 'i686')
+license=('MIT')
+depends=('opencv>=3.1.0-2' 'boost>=1.66.0-1' 'boost-libs>=1.66.0-1')
+makedepends=('cmake>=3.1.3-1')
+source=("git+https://github.com/JoakimSoderberg/imageclipper.git")
+md5sums=('SKIP')
+
+package() {
+
+ # Build
+ cd $srcdir/imageclipper
+ mkdir build && cd build
+ cmake ..
+ cmake --build .
+
+ # Copy Binary
+ mkdir -p $pkgdir/usr/bin
+ cp ./bin/imageclipper $pkgdir/usr/bin
+ chmod +x $pkgdir/usr/bin/imageclipper
+}