aboutsummaryrefslogtreecommitdiffstats
path: root/texlive-flashcards/PKGBUILD
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-06-11 18:42:08 +0200
committerMattias Andrée <maandree@operamail.com>2015-06-11 18:42:08 +0200
commit431a4ca6d3b582ba1e949b667fe278c93217f8cb (patch)
treefa0489f07c80612965ff5e6cfe6d4790d8f0087e /texlive-flashcards/PKGBUILD
parentupdate todo (diff)
downloadaur-packages-431a4ca6d3b582ba1e949b667fe278c93217f8cb.tar.gz
aur-packages-431a4ca6d3b582ba1e949b667fe278c93217f8cb.tar.bz2
aur-packages-431a4ca6d3b582ba1e949b667fe278c93217f8cb.tar.xz
migrating to aur4
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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"
}
+