summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e70ae3307e7d845bc6e89657747f004c5c4e2a18 (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
# Maintainer: Anthony VanBerkum <anthonyvbop AT gmail DOT com>
# https://github.com/avbop/lyluatex-aur
pkgbase=lyluatex-git
pkgname=$pkgbase
pkgver=r763.157ccf6
pkgrel=1
pkgdesc="Include lilypond scores in LuaLaTeX files."
url=https://github.com/jperon/lyluatex
arch=("any")
license=("MIT")
makedepends=("git")
depends=("texlive-core" "texlive-fontsextra" "texlive-bin" "texlive-formatsextra" "texlive-latexextra" "lilypond" "luaoptions-git")
conflicts=("texlive-music")
source=("$pkgbase::git+https://github.com/jperon/lyluatex.git")
sha256sums=("SKIP")


pkgver() {
  cd "$srcdir/$pkgbase/"
  echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd "$srcdir/$pkgbase/"
  mkdir -p $pkgdir/usr/share/texmf-dist/tex/luatex/lyluatex || return 1
  cp lyluatex.sty $pkgdir/usr/share/texmf-dist/tex/luatex/lyluatex || return 1
  cp lyluatex.lua $pkgdir/usr/share/texmf-dist/tex/luatex/lyluatex || return 1
  mkdir -p $pkgdir/usr/share/licenses/lyluatex-git || return 1
  cp LICENSE $pkgdir/usr/share/licenses/lyluatex-git || return 1
}