[arch-commits] Commit in auto-multiple-choice (3 files)

Baptiste Jonglez zorun at archlinux.org
Tue Jan 1 21:55:24 UTC 2019


    Date: Tuesday, January 1, 2019 @ 21:55:24
  Author: zorun
Revision: 420233

archrelease: copy trunk to community-x86_64

Added:
  auto-multiple-choice/repos/
  auto-multiple-choice/repos/community-x86_64/
  auto-multiple-choice/repos/community-x86_64/PKGBUILD
    (from rev 420232, auto-multiple-choice/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: auto-multiple-choice/repos/community-x86_64/PKGBUILD (from rev 420232, auto-multiple-choice/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2019-01-01 21:55:24 UTC (rev 420233)
@@ -0,0 +1,44 @@
+# Maintainer: Baptiste Jonglez
+# Contributor: Benoit LANDRIEU
+# Contributor: Thomas LEGRAND
+# Contributor: Alexis Bienvenue
+# Contributor: fabmen
+
+pkgname=auto-multiple-choice
+pkgver=1.4.0
+pkgrel=1
+pkgdesc="AMC is a piece of software that can help you creating and managing multiple choice questionnaires (MCQ), with automated marking. Answers sheets are formatted with LaTeX."
+arch=('i686' 'x86_64')
+url='https://www.auto-multiple-choice.net/'
+license=('GPL2')
+depends=('perl' 'perl-gtk3' 'perl-glib-object-introspection' 'perl-locale-gettext'
+         'perl-xml-writer' 'perl-xml-simple' 'perl-dbd-sqlite' 'perl-file-mimeinfo'
+         'perl-text-csv' 'perl-dbi' 'perl-archive-zip'
+         'ttf-linux-libertine'
+         'opencv' 'poppler' 'poppler-glib')
+makedepends=('netpbm')
+optdepends=('texlive-core: LaTeX distribution')
+source=("https://download.auto-multiple-choice.net/auto-multiple-choice_${pkgver}_precomp.tar.gz"{,.sig})
+sha256sums=('d4b4f9ec44206e421c97fe4f160df04d83230e6afdaa5cb1f1a08a1ddb337c22'
+            'SKIP')
+validpgpkeys=('1F0FAB7CC69ACAD8374DB119D3F94059A398971E') # Alexis Bienvenüe <palnch at passoire.fr>
+
+prepare() {
+  cd "$srcdir"/$pkgbase-$pkgver
+  # PERLDIR hack to conform to https://wiki.archlinux.org/index.php/Perl_package_guidelines#Package_file_placement
+  # We can't edit Makefile.conf because it triggers a rebuild of precompiled doc targets.
+  # So just overwrite PERLDIR after Makefile.Conf is included in the main Makefile.
+  sed -i -e '/^include Makefile-all.conf/aPERLDIR="/usr/share/perl5/vendor_perl"' Makefile
+}
+
+build() {
+  cd "$srcdir"/$pkgbase-$pkgver
+  make all_precomp \
+    GCC_OPENCV="$(pkg-config --cflags opencv4)" \
+    GCC_OPENCV_LIBS="$(pkg-config --libs opencv4)"
+}
+
+package() {
+  cd "$srcdir"/$pkgbase-$pkgver
+  make DESTDIR="$pkgdir/" install
+}


More information about the arch-commits mailing list