Skip to content
Snippets Groups Projects
Verified Commit 130dda0b authored by Robin Candau's avatar Robin Candau
Browse files

upgpkg: 4.15-3: Add the 'highlight-perl' split package containing perl modules

Also include subtle style changes
parent d31a8185
No related branches found
Tags 1.24.12-1
No related merge requests found
pkgbase = highlight
pkgdesc = Fast and flexible source code highlighter
pkgver = 4.15
pkgrel = 2
pkgrel = 3
url = http://www.andre-simon.de/doku/highlight/highlight.html
arch = x86_64
license = GPL-3.0-or-later
makedepends = qt5-base
makedepends = lua
makedepends = boost
makedepends = swig
source = http://www.andre-simon.de/zip/highlight-4.15.tar.bz2
source = http://www.andre-simon.de/zip/highlight-4.15.tar.bz2.asc
source = use_gcc.patch
......@@ -18,11 +20,17 @@ pkgbase = highlight
sha256sums = 8ebc7cfb1a43417ec19c3346b69817b68ac6de9caf4fd46bdeef2b2831900caf
pkgname = highlight
pkgdesc = Fast and flexible source code highlighter (CLI version)
pkgdesc = Fast and flexible source code highlighter - CLI version
depends = lua
backup = etc/highlight/filetypes.conf
pkgname = highlight-perl
pkgdesc = Fast and flexible source code highlighter - perl module
depends = highlight
depends = perl
pkgname = highlight-gui
pkgdesc = Fast and flexible source code highlighter (Qt version)
pkgdesc = Fast and flexible source code highlighter - QT GUI version
depends = qt5-base
depends = highlight
depends = hicolor-icon-theme
......@@ -3,14 +3,15 @@
# Contributor: Jan Fader <jan.fader@web.de>
pkgbase=highlight
pkgname=('highlight' 'highlight-gui')
pkgname=('highlight' 'highlight-perl' 'highlight-gui')
pkgver=4.15
pkgrel=2
pkgrel=3
pkgdesc="Fast and flexible source code highlighter"
url="http://www.andre-simon.de/doku/highlight/highlight.html"
license=('GPL-3.0-or-later')
arch=('x86_64')
makedepends=('qt5-base' 'lua' 'boost')
source=("http://www.andre-simon.de/zip/${pkgname}-${pkgver}.tar.bz2"{,.asc}
makedepends=('qt5-base' 'lua' 'boost' 'swig')
source=("http://www.andre-simon.de/zip/${pkgbase}-${pkgver}.tar.bz2"{,.asc}
'use_gcc.patch'
'strip_gzip_timestamps.patch')
sha256sums=('68b3f8178c5c9d4b0a03f6948635cef1c8d06244f6b438eebf3a190c588337e9'
......@@ -35,21 +36,35 @@ build() {
make QMAKE=qmake-qt5
make QMAKE=qmake-qt5 gui
make -C extras/swig perl
}
package_highlight() {
pkgdesc="Fast and flexible source code highlighter (CLI version)"
pkgdesc="${pkgdesc} - CLI version"
depends=('lua')
backup=("etc/${pkgname}/filetypes.conf")
backup=("etc/${pkgbase}/filetypes.conf")
cd "${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" QMAKE=qmake-qt5 install
# Remove extras modules files from doc folder
rm -rf "${pkgdir}/usr/share/doc/${pkgbase}/extras"
}
package_highlight-perl() {
pkgdesc="${pkgdesc} - perl module"
depends=('highlight' 'perl')
_perl_version=$(perl -V:vendorarch)
cd "${pkgbase}-${pkgver}"
install -Dm 644 "extras/swig/${pkgbase}.pm" "${pkgdir}/usr/lib/perl5/${_perl_version}/vendor_perl/${pkgbase}.pm"
install -Dm 755 "extras/swig/${pkgbase}.so" "${pkgdir}/usr/lib/perl5/${_perl_version}/vendor_perl/auto/${pkgbase}/${pkgbase}.so"
}
package_highlight-gui() {
pkgdesc="Fast and flexible source code highlighter (Qt version)"
depends=('qt5-base' 'highlight')
pkgdesc="${pkgdesc} - QT GUI version"
depends=('qt5-base' 'highlight' 'hicolor-icon-theme')
cd "${pkgbase}-${pkgver}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment