blob: 55e1739d5b1c39131b567f8c429019773cb8957d (
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 (Arch): XZS <d dot f dot fischer at web dot de>
# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de>
# Contributor (Arch): Rémy Oudompheng <remy@archlinux.org>
# Contributor (Arch): Firmicus <francois . archlinux . org>
pkgname=texlive-localmanager-git
pkgver=0.5.1.r0.g6befd1e
pkgrel=1
pkgdesc="A shell and command-line utility to manage TeXLive on Parabola GNU/Linux-libre"
arch=('any')
url="https://git.archlinux.org/users/remy/texlive-localmanager.git/"
license=('GPL')
depends=('texlive-core>=2011' 'perl-libwww' 'perl-term-shellui' 'perl-term-readline-gnu' 'perl-list-moreutils')
install='tllocalmgr.install'
_giturl="git://projects.archlinux.org/users/remy/${pkgname%-git}.git"
makedepends+=('git')
source+=("${_gitname:=${pkgname%-git}}::${_giturl:-git+$url}")
for integ in $(get_integlist)
do
typeset -n array="${integ}sums"
array+=('SKIP')
done
provides+=("$_gitname=$pkgver")
conflicts+=("$_gitname")
pkgver() {
cd ${_gitname:-$pkgname}
git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1'
[ ${PIPESTATUS[0]} -ne 0 ] && \
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$_gitname"
install -d $pkgdir/usr/{bin,share/texmf/arch/tlpkg/TeXLive}
install -m755 tllocalmgr $pkgdir/usr/bin/
cd tlpkg/TeXLive
for _f in *; do
install -m644 $_f $pkgdir/usr/share/texmf/arch/tlpkg/TeXLive/
done
}
|