aboutsummaryrefslogtreecommitdiffstats
path: root/texlive-flashcards/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'texlive-flashcards/PKGBUILD')
-rw-r--r--texlive-flashcards/PKGBUILD22
1 files changed, 14 insertions, 8 deletions
diff --git a/texlive-flashcards/PKGBUILD b/texlive-flashcards/PKGBUILD
index 5092996..bf610be 100644
--- a/texlive-flashcards/PKGBUILD
+++ b/texlive-flashcards/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=texlive-flashcards
pkgver=1.0.1
-pkgrel=1
+pkgrel=2
license=('GPL')
depends=('texlive-core')
pkgdesc="A class for typesetting flashcards."
@@ -13,14 +13,20 @@ install=texlive-flashcards.install
source=(http://mirror.ctan.org/macros/latex/contrib/flashcards.zip)
md5sums=('21f85c9b291a0d06e815ce09d89f4463')
-build()
+build ()
{
- mkdir -p $pkgdir/usr/share/texmf/tex/latex/flashcards
-
- cd $srcdir/flashcards
+ cd "${srcdir}/flashcards"
latex flashcards.ins
- cp flashcards.cls $pkgdir/usr/share/texmf/tex/latex/flashcards
- cp *.cfg $pkgdir/usr/share/texmf/tex/latex/flashcards
+}
+
+package ()
+{
+ cd "${srcdir}/flashcards"
+ mkdir -p -- "${pkgdir}/usr/share/texmf/tex/latex/flashcards"
+
+ cp -- flashcards.cls "${pkgdir}/usr/share/texmf/tex/latex/flashcards"
+ cp -- *.cfg "${pkgdir}/usr/share/texmf/tex/latex/flashcards"
- install -D $srcdir/flashcards/COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -D -- "${srcdir}/flashcards/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
+