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

Jonas Witschel diabonas at archlinux.org
Wed Dec 4 12:58:14 UTC 2019


    Date: Wednesday, December 4, 2019 @ 12:58:14
  Author: diabonas
Revision: 535188

upgpkg: texworks 0.6.3-6

Use system libsynctex instead of vendored copy.

Modified:
  texworks/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-04 12:43:21 UTC (rev 535187)
+++ PKGBUILD	2019-12-04 12:58:14 UTC (rev 535188)
@@ -1,12 +1,12 @@
 # Maintainer: Jonas Witschel <diabonas at archlinux.org>
 pkgname=texworks
 pkgver=0.6.3
-pkgrel=5
+pkgrel=6
 pkgdesc='Unicode-based, TeX-aware editor with integrated PDF viewer'
 arch=('x86_64')
 url='https://www.tug.org/texworks/'
 license=('GPL')
-depends=('hunspell' 'poppler-qt5' 'qt5-script')
+depends=('hunspell' 'libsynctex' 'poppler-qt5' 'qt5-script')
 makedepends=('cmake' 'lua' 'python' 'qt5-tools')
 checkdepends=('gsfonts' 'poppler-data' 'xorg-server-xvfb')
 optdepends=('gsfonts: correctly display PDF files without embedded fonts'
@@ -17,20 +17,25 @@
 source=("$pkgname-$pkgver.tar.gz::https://github.com/TeXworks/texworks/archive/release-$pkgver.tar.gz")
 sha512sums=('389cf54441e74164fc842f2f293cdee45c6ff9fe202f262d32f3fb076de9a29813a62cd75052969293f2f784e0722215bbbf2206e75bc836a13d495bf5aed653')
 
+prepare() {
+	mkdir build
+}
+
 build() {
-	cd "texworks-release-$pkgver"
-	mkdir build
 	cd build
-	cmake -DCMAKE_INSTALL_PREFIX=/usr -DTW_BUILD_ID='Arch Linux' -DWITH_PYTHON=ON ..
+	cmake -DCMAKE_INSTALL_PREFIX=/usr \
+	      -DTW_BUILD_ID='Arch Linux' \
+	      -DWITH_PYTHON=ON \
+	      "$srcdir/texworks-release-$pkgver"
 	make
 }
 
 check() {
-	cd "texworks-release-$pkgver/build"
+	cd build
 	xvfb-run ctest --output-on-failure
 }
 
 package() {
-	cd "texworks-release-$pkgver/build"
+	cd build
 	make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list