aboutsummaryrefslogtreecommitdiffstats
path: root/community/exiv2/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/exiv2/APKBUILD')
-rw-r--r--community/exiv2/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/community/exiv2/APKBUILD b/community/exiv2/APKBUILD
new file mode 100644
index 0000000000..18f34a6c32
--- /dev/null
+++ b/community/exiv2/APKBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=exiv2
+pkgver=0.27.2
+pkgrel=6
+pkgdesc="Exif and Iptc metadata manipulation library and tools."
+url="https://exiv2.org"
+arch="all"
+options="!check" # No test suite.
+license="GPL-2.0-or-later"
+depends_dev="expat-dev zlib-dev"
+makedepends="$depends_dev cmake"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://exiv2.org/builds/exiv2-$pkgver-Source.tar.gz
+ CVE-2019-17402.patch
+ CVE-2019-20421.patch
+ "
+builddir="$srcdir"/$pkgname-$pkgver-Source
+
+# secfixes:
+# 0.27.2-r6:
+# - CVE-2019-20421
+# 0.27.2-r2:
+# - CVE-2019-17402
+# 0.27.2-r0:
+# - CVE-2019-13108
+# - CVE-2019-13109
+# - CVE-2019-13110
+# - CVE-2019-13111
+# - CVE-2019-13112
+# - CVE-2019-13113
+# - CVE-2019-13114
+
+build() {
+ cmake -B build . \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DEXIV2_BUILD_SAMPLES=OFF
+ make -C build
+}
+
+check() {
+ make -C build test
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}
+
+sha512sums="39eb7d920dce18b275ac66f4766c7c73f7c72ee10e3e1e43d84c611b24f48ce20a70eac6d53948914e93242a25b8b52cc4bc760ee611ddcd77481306c1f9e721 exiv2-0.27.2-Source.tar.gz
+da58d6cf6409304465c16a6c73af3731a75c59c0f3e16d740edd3f46308d3ba8ed8b5fc0473920b67b2aeb2b4bb66574aee4b0f57585d127f6e6a3f62b5c0766 CVE-2019-17402.patch
+b2b881e47e4cad8b04492f7475400af9f28fa8f9dfb1e96d4d0d8caa6a469e76aafc056023254446e1026be8270f1b094b5195fe44f18c87283f6c6d808c37ee CVE-2019-20421.patch"