blob: e937261e059ef1ba44084730959d08829102866a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Jack Kamm <jackkamm at gmail dot com>
pkgname=biosyntax-less-git
pkgver=1.0.0.r20.g23259cd
pkgrel=1
pkgdesc="Syntax Highlighting for Computational Biology, less plugin"
arch=('any')
url="https://biosyntax.org/"
license=('GPL3')
depends=('less' 'source-highlight')
makedepends=('sed' 'git')
source=("biosyntax-less-git::git+https://github.com/bioSyntax/bioSyntax.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname"
sed -i 's|$HOME/.local/share/source-highlight|/usr/share/source-highlight|g' less/rc_append.txt
}
package() {
cd "$srcdir/$pkgname"
mkdir -p "$pkgdir/usr/share/source-highlight/"
cp less/*.outlang "$pkgdir/usr/share/source-highlight/"
cp less/*.lang "$pkgdir/usr/share/source-highlight/"
cp less/*.style "$pkgdir/usr/share/source-highlight/"
cp less/src-hilite-lesspipe-bio-LINUX.sh "$pkgdir/usr/share/source-highlight/src-hilite-lesspipe-bio.sh"
chmod 755 "$pkgdir/usr/share/source-highlight/src-hilite-lesspipe-bio.sh"
mkdir -p "$pkgdir/usr/share/biosyntax-less"
cp less/rc_append.txt "$pkgdir/usr/share/biosyntax-less/"
}
# vim:set ts=2 sw=2 et:
|