forked from denki/listings-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
33 lines (30 loc) · 808 Bytes
/
PKGBUILD
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
pkgname=latex-listings-rust-git
_gitpkgname="${pkgname%-git}"
_gitpkgname="${_gitpkgname#latex-}"
pkgver=VERSION
pkgrel=1
pkgdesc="A Rust language and style specification for the LaTeX-package listings"
arch=('any')
url="https://github.com/denki/listings-rust"
license=('BSD')
groups=()
depends=('texlive-core')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("git+${url}.git")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "${_gitpkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/${_gitpkgname}"
install -m 755 -d $pkgdir/usr/share/texmf-dist/tex/latex/listings-rust
install -m 644 listings-rust.sty $pkgdir/usr/share/texmf-dist/tex/latex/listings-rust
}