summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-01-11 04:52:58 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-01-11 04:52:58 -0200
commit7c9279d4fd009767f67b2eebd67ade8c0d3f6d35 (patch)
tree50e9d9406404cf04c2c3c435d08ffa7a12378286
parent3fea26f86a21d0684551d0522293975d92f076ee (diff)
downloadabslibre-7c9279d4fd009767f67b2eebd67ade8c0d3f6d35.tar.gz
abslibre-7c9279d4fd009767f67b2eebd67ade8c0d3f6d35.tar.bz2
abslibre-7c9279d4fd009767f67b2eebd67ade8c0d3f6d35.zip
texlive-fontsextra-libre: add mksource
-rw-r--r--libre/texlive-fontsextra-libre/PKGBUILD26
1 files changed, 19 insertions, 7 deletions
diff --git a/libre/texlive-fontsextra-libre/PKGBUILD b/libre/texlive-fontsextra-libre/PKGBUILD
index 7d3fc7d20..55a117c79 100644
--- a/libre/texlive-fontsextra-libre/PKGBUILD
+++ b/libre/texlive-fontsextra-libre/PKGBUILD
@@ -16,20 +16,32 @@ replaces=('texlive-fontsextra')
conflicts=('texlive-fontsextra')
provides=('texlive-fontsextra')
url='http://tug.org/texlive/'
-source=("ftp://ftp.archlinux.org/other/texlive/$_pkgname-$pkgver-src.zip" "$_pkgname.maps")
+mksource=("ftp://ftp.archlinux.org/other/texlive/$_pkgname-$pkgver-src.zip")
+noextract=("$_pkgname-$pkgver-src.zip")
+source=("https://repo.parabolagnulinux.org/sources/$pkgname-$pkgver-src.tar.xz" "$_pkgname.maps")
options=('!emptydirs')
options=(!strip)
install=texlive.install
-md5sums=('3f519371dd2e22e5b32daa461b89aea2'
+mkmd5sums=('3f519371dd2e22e5b32daa461b89aea2')
+md5sums=('e6b12e482913169f44c54172316416bc'
'f489cc5f762dcdbe6acb11624de7e138')
-build() {
- cd "$srcdir"
+mksource() {
+ mkdir $_pkgname-$pkgver
+ pushd $_pkgname-$pkgver
+ bsdtar xfv ../$_pkgname-$pkgver-src.zip
+
# remove nonfree packages
# No specific free license.
- rm ogham.tar.xz
+ rm -v ogham.tar.xz
# Remove them from package list.
sed -ri '/^ogham /d' CONTENTS
+
+ popd
+}
+
+build() {
+ cd $srcdir/$_pkgname-$pkgver
for p in *.tar.xz; do
bsdtar -xf $p
done
@@ -37,11 +49,11 @@ build() {
}
package() {
- cd "$srcdir"
+ cd $srcdir/$_pkgname-$pkgver
install -m755 -d $pkgdir/var/lib/texmf/arch/installedpkgs
sed -i '/^#/d' CONTENTS
install -m644 CONTENTS $pkgdir/var/lib/texmf/arch/installedpkgs/${_pkgname}_${_revnr}.pkgs
- install -m644 $_pkgname.maps $pkgdir/var/lib/texmf/arch/installedpkgs/
+ install -m644 $srcdir/$_pkgname.maps $pkgdir/var/lib/texmf/arch/installedpkgs/
install -m755 -d $pkgdir/usr/share
wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
for dir in $wanteddirs; do