[arch-commits] Commit in asymptote/trunk (PKGBUILD)

Rémy Oudompheng remy at archlinux.org
Sun Dec 30 14:26:38 UTC 2018


    Date: Sunday, December 30, 2018 @ 14:26:37
  Author: remy
Revision: 342802

upgpkg: asymptote 2.47+14+g38a59370-1

Switch to Git sources to include gc 7.6.8 compatibility.
Fixes FS#60678

Modified:
  asymptote/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-30 09:47:11 UTC (rev 342801)
+++ PKGBUILD	2018-12-30 14:26:37 UTC (rev 342802)
@@ -3,7 +3,7 @@
 # Contributor: bender02 at gmx dot com
 
 pkgname=asymptote
-pkgver=2.47
+pkgver=2.47+14+g38a59370
 pkgrel=1
 pkgdesc="A vector graphics language (like metapost)"
 arch=('x86_64')
@@ -10,7 +10,7 @@
 url="http://asymptote.sourceforge.net/"
 license=("GPL3")
 depends=('texlive-core' 'gc' 'freeglut' 'glu' 'gsl' 'fftw' 'libsigsegv')
-makedepends=('ghostscript' 'imagemagick'
+makedepends=('git' 'ghostscript' 'imagemagick'
              'mesa'               # For OpenGL headers
              'texlive-plainextra' # For texinfo
              'python-pyqt5'       # For xasy GUI generation
@@ -17,11 +17,19 @@
             )
 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')
+#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}-${pkgver}"
+  cd "${srcdir}/${pkgname}"
 
   ./configure --enable-gc=/usr \
               --prefix=/usr \
@@ -32,12 +40,12 @@
 }
 
 check() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${pkgname}"
   make check-all
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  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



More information about the arch-commits mailing list