summaryrefslogtreecommitdiff
path: root/pcr/texlive-localmanager-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-02-21 11:37:02 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-02-21 11:42:30 -0300
commit80c3ca168235b18997a7a6ee75e94885761d7af3 (patch)
tree7320b8fbeba7de7368690be46751088bf7e90e26 /pcr/texlive-localmanager-git
parent3c19fe773d23d4ee987c39aa84be60021ad3acef (diff)
texlive-localmanager-git: add new package to [pcr]
Diffstat (limited to 'pcr/texlive-localmanager-git')
-rw-r--r--pcr/texlive-localmanager-git/PKGBUILD41
-rw-r--r--pcr/texlive-localmanager-git/tllocalmgr.install7
2 files changed, 48 insertions, 0 deletions
diff --git a/pcr/texlive-localmanager-git/PKGBUILD b/pcr/texlive-localmanager-git/PKGBUILD
new file mode 100644
index 000000000..55e1739d5
--- /dev/null
+++ b/pcr/texlive-localmanager-git/PKGBUILD
@@ -0,0 +1,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
+}
diff --git a/pcr/texlive-localmanager-git/tllocalmgr.install b/pcr/texlive-localmanager-git/tllocalmgr.install
new file mode 100644
index 000000000..9a05beb5a
--- /dev/null
+++ b/pcr/texlive-localmanager-git/tllocalmgr.install
@@ -0,0 +1,7 @@
+post_install() {
+ cat <<WARNING
+Notice that tllocalmgr only manages packages from the texlive distribution.
+It also often leaves you with very cryptic error messages normally just
+indicating that it could not find the package you were asking it for.
+WARNING
+}