[arch-commits] Commit in zxing-cpp/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed May 15 14:51:19 UTC 2019
Date: Wednesday, May 15, 2019 @ 14:51:18
Author: arojas
Revision: 353391
archrelease: copy trunk to extra-x86_64
Added:
zxing-cpp/repos/extra-x86_64/PKGBUILD
(from rev 353390, zxing-cpp/trunk/PKGBUILD)
Deleted:
zxing-cpp/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 69 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 37 insertions(+), 32 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-15 14:50:58 UTC (rev 353390)
+++ PKGBUILD 2019-05-15 14:51:18 UTC (rev 353391)
@@ -1,32 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Maintainer: Maxime Arthaud <maxime at arthaud.me>
-
-pkgname=zxing-cpp
-pkgver=1.0.4
-pkgrel=1
-pkgdesc="A command-line tool to decode QRCode"
-arch=(x86_64)
-url="https://github.com/nu-book/zxing-cpp"
-license=(Apache)
-depends=()
-makedepends=(cmake)
-optdepends=('opencv: support for opencv')
-source=($pkgname-$pkgver.tar.gz::"https://github.com/nu-book/zxing-cpp/archive/v$pkgver.tar.gz")
-sha256sums=('e3bb5c135523638ca875c242efb958742b4b8e02a1acdf6b182ecd85021463dd')
-
-prepare() {
- mkdir -p build
-}
-
-build() {
- cd build
- cmake ../$pkgname-$pkgver/core \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fPIC"
- make
-}
-
-package() {
- cd build
- make DESTDIR="$pkgdir" install
-}
Copied: zxing-cpp/repos/extra-x86_64/PKGBUILD (from rev 353390, zxing-cpp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-05-15 14:51:18 UTC (rev 353391)
@@ -0,0 +1,37 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Maxime Arthaud <maxime at arthaud.me>
+
+pkgname=zxing-cpp
+pkgver=1.0.4
+pkgrel=2
+pkgdesc="A command-line tool to decode QRCode"
+arch=(x86_64)
+url="https://github.com/nu-book/zxing-cpp"
+license=(Apache)
+depends=(gcc-libs)
+makedepends=(cmake)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/nu-book/zxing-cpp/archive/v$pkgver.tar.gz"
+ zxing-cpp-shared.patch::"https://github.com/nu-book/zxing-cpp/commit/f77a2db2.patch")
+sha256sums=('e3bb5c135523638ca875c242efb958742b4b8e02a1acdf6b182ecd85021463dd'
+ '40045b7d32d3f435a50a1398ff1ed90605cff75f1496d2dc0964c7f9c7cc790e')
+
+prepare() {
+ mkdir -p build
+
+ cd $pkgname-$pkgver
+ patch -p1 -i ../zxing-cpp-shared.patch # Allow to build shared library
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-$pkgver/core \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fPIC" \
+ -DBUILD_SHARED_LIBRARY=ON
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
More information about the arch-commits
mailing list