Last active
September 19, 2019 12:41
-
-
Save holishing/91547c11588b38bef8fa27cded9f72c5 to your computer and use it in GitHub Desktop.
Inkscape 1.0beta1 Archlinux Packaging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: PKGBUILD.cmake | |
| =================================================================== | |
| --- PKGBUILD.cmake (revision 361122) | |
| +++ PKGBUILD.cmake (working copy) | |
| @@ -4,27 +4,25 @@ | |
| # Contributor: tobias <[email protected]> | |
| pkgname=inkscape | |
| -pkgver=0.92.2 | |
| -pkgrel=3 | |
| +pkgver=1.0beta1 | |
| +pkgrel=1 | |
| pkgdesc='Professional vector graphics editor' | |
| url='https://inkscape.org/' | |
| license=('GPL' 'LGPL') | |
| arch=('x86_64') | |
| makedepends=('boost' 'intltool' 'cmake') | |
| -depends=('gc' 'gsl' 'gtkmm' 'gtkspell' 'imagemagick' 'libxslt' 'poppler-glib' | |
| - 'popt' 'potrace' 'ttf-dejavu' 'python' 'libcdr' 'libvisio' 'libwpg' | |
| - 'desktop-file-utils' 'hicolor-icon-theme') | |
| +depends=('gc' 'gsl' 'gdl' 'gtkmm' 'gtkspell' 'imagemagick' 'libxslt' 'poppler-glib' | |
| + 'popt' 'potrace' 'ttf-dejavu' 'python' 'libcdr' 'libvisio' 'libwpg' | |
| + 'desktop-file-utils' 'hicolor-icon-theme' 'ninja') | |
| optdepends=('gvfs: import clip art' | |
| - 'pstoedit: latex formulas' | |
| - 'scour: optimized SVG output' | |
| - 'texlive-core: latex formulas' | |
| - 'python-numpy: some extensions' | |
| - 'python-lxml: some extensions and filters' | |
| - 'uniconvertor: reading/writing to some proprietary formats') | |
| -source=("https://media.inkscape.org/dl/resources/file/${pkgname}-${pkgver}.tar.bz2" | |
| - poppler-0.58.patch) | |
| -sha256sums=('a628d0e04c254e9840947e6d866974f92c68ae31631a38b94d9b65e5cd84cfd3' | |
| - 'af6796619a74b392432c72abdb703971fbcaf1c8ff196ce5bb37505914d38f5a') | |
| + 'pstoedit: latex formulas' | |
| + 'scour: optimized SVG output' | |
| + 'texlive-core: latex formulas' | |
| + 'python-numpy: some extensions' | |
| + 'python-lxml: some extensions and filters' | |
| + 'uniconvertor: reading/writing to some proprietary formats') | |
| +source=("https://media.inkscape.org/dl/resources/file/${pkgname}-${pkgver}.tar.bz2") | |
| +sha256sums=('1ff374cea44a881882b34937c29844726c3f7ae6b01374be624d83c8af6be0b6') | |
| # NB: Some CDN nodes appear to be distributing an outdated version of this file. | |
| @@ -31,10 +29,7 @@ | |
| prepare() { | |
| cd ${pkgname}-${pkgver} | |
| - mkdir ../build | |
| - | |
| - # https://gitlab.com/inkscape/inkscape/commit/93ccf03162cd2e46d962822d5507865f3451168c | |
| - patch -Np1 -i ../poppler-0.58.patch | |
| + mkdir -p ../build | |
| } | |
| build() { | |
| @@ -48,14 +43,16 @@ | |
| -DSHARE_INSTALL_PREFIX:PATH=/usr/share \ | |
| -DCMAKE_ENABLE_LCMS=ON \ | |
| -DCMAKE_ENABLE_POPPLER_CAIRO=ON \ | |
| - -DCMAKE_WITH_NLS=ON | |
| - make | |
| + -DCMAKE_WITH_NLS=ON \ | |
| + -GNinja | |
| + export MAKEFLAG="$(nproc)" | |
| + ninja | |
| } | |
| package() { | |
| cd build | |
| - make DESTDIR="${pkgdir}" install | |
| + DESTDIR="${pkgdir}" ninja install | |
| # cleanup | |
| - rm $pkgdir/usr/include/*.a | |
| + #rm $pkgdir/usr/include/*.a | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment