summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPhotonQuantum2019-12-19 21:38:07 +0800
committerPhotonQuantum2019-12-19 21:38:07 +0800
commit63de621d701f33027605af30a45ae4a5d40eab3f (patch)
treed164a5a168fb730ed0dd69fb514e64a35942aa1f /PKGBUILD
downloadaur-63de621d701f33027605af30a45ae4a5d40eab3f.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..260e5780e3d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: LightQuantum <cy.n01 at outlook dot com>
+
+pkgname=latex-sjtutex-git
+pkgver=r343.2f1bda5
+pkgrel=1
+pkgdesc="Macro Packages and Scripts for SJTU TeX users"
+arch=(any)
+url="https://github.com/sjtug/SJTUTeX"
+license=('LPPL')
+depends=('texlive-core')
+makedepends=('git' 'unzip' 'zip')
+install="${pkgname}.install"
+source=('git+https://github.com/sjtug/SJTUTeX' 'patch-0.patch')
+md5sums=('SKIP'
+ '8bf2684bec9e47f9df06df861aa3068b')
+
+pkgver() {
+ cd "$srcdir"/SJTUTeX
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ patch -p0 < patch-0.patch
+ cd "$srcdir"/SJTUTeX
+ make
+ mkdir -p $pkgdir/usr/share/texmf-dist/
+ unzip -o -q release/sjtuthesis.tds.zip -d $pkgdir/usr/share/texmf-dist/
+}