[arch-commits] Commit in asymptote/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat Aug 24 22:45:23 UTC 2019


    Date: Saturday, August 24, 2019 @ 22:45:22
  Author: foutrelis
Revision: 361130

archrelease: copy trunk to staging-x86_64

Added:
  asymptote/repos/staging-x86_64/
  asymptote/repos/staging-x86_64/PKGBUILD
    (from rev 361129, asymptote/trunk/PKGBUILD)

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

Copied: asymptote/repos/staging-x86_64/PKGBUILD (from rev 361129, asymptote/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2019-08-24 22:45:22 UTC (rev 361130)
@@ -0,0 +1,62 @@
+# Maintainer: Rémy Oudompheng <remy at archlinux.org>
+# Contributor: Firmicus <francois.archlinux.org>
+# Contributor: bender02 at gmx dot com
+
+pkgname=asymptote
+pkgver=2.47+14+g38a59370
+pkgrel=3
+pkgdesc="A vector graphics language (like metapost)"
+arch=('x86_64')
+url="http://asymptote.sourceforge.net/"
+license=("GPL3")
+depends=('texlive-core' 'gc' 'freeglut' 'glu' 'gsl' 'fftw' 'libsigsegv')
+makedepends=('git' 'ghostscript' 'imagemagick'
+             'mesa'               # For OpenGL headers
+             'texlive-plainextra' # For texinfo
+             'python-pyqt5'       # For xasy GUI generation
+            )
+optdepends=('python-pyqt5: for the xasy GUI'
+            'python-cson:  for the xasy GUI')
+#source=("https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.src.tgz")
+#sha1sums=('89b6eaf4148ebe9cae61a171a7a7ce24f38a7cbb')
+_commit=38a59370dc5ac720c29e1424614a10f7384b943f
+source=("git+https://github.com/vectorgraphics/asymptote#commit=$_commit")
+sha1sums=(SKIP)
+
+prepare() {
+  cd "${srcdir}/${pkgname}"
+  ./autogen.sh
+}
+
+build() {
+  cd "${srcdir}/${pkgname}"
+
+  ./configure --enable-gc=/usr \
+              --prefix=/usr \
+              --with-latex=/usr/share/texmf/tex/latex \
+              --with-context=/usr/share/texmf/tex/context \
+              --enable-offscreen
+  make all
+}
+
+check() {
+  cd "${srcdir}/${pkgname}"
+  make check-all
+}
+
+package() {
+  cd "${srcdir}/${pkgname}"
+  make -j1 DESTDIR="${pkgdir}" install-all
+  # this dir contains png files that are already embedded in the pdf documentation:
+  rm -rf ${pkgdir}/usr/share/info/asymptote
+
+  # copy some data files to their correct location
+  mkdir -p "$pkgdir"/usr/share/emacs/site-lisp
+  cp "$pkgdir"/usr/share/asymptote/*.el "$pkgdir"/usr/share/emacs/site-lisp
+  mkdir -p "$pkgdir"/usr/share/vim/vimfiles/syntax
+  cp "$pkgdir"/usr/share/asymptote/*.vim "$pkgdir"/usr/share/vim/vimfiles/syntax
+  mkdir -p "$pkgdir"/usr/share/org.kde.syntax-highlighting/syntax
+  cd "$pkgdir"/usr/share/asymptote/
+  sh asy-kate.sh
+  mv asymptote.xml "$pkgdir"/usr/share/org.kde.syntax-highlighting/syntax
+}


More information about the arch-commits mailing list