[arch-commits] Commit in cmucl/trunk (PKGBUILD)
Eric Bélanger
eric at nymeria.archlinux.org
Sun Feb 10 18:02:07 UTC 2013
Date: Sunday, February 10, 2013 @ 19:02:07
Author: eric
Revision: 177913
Add package function
Modified:
cmucl/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++----------------
1 file changed, 19 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-02-10 17:58:36 UTC (rev 177912)
+++ PKGBUILD 2013-02-10 18:02:07 UTC (rev 177913)
@@ -21,13 +21,13 @@
arch=(i686)
build() {
- cd ${srcdir}
+ cd "${srcdir}"
patch -Np1 -i workaround-for-gcc-4.6-overoptimization
- export CMUCLCORE=${srcdir}/lib/cmucl/lib/lisp-x87.core
+ export CMUCLCORE="${srcdir}"/lib/cmucl/lib/lisp-x87.core
# Create target buildroot
./src/tools/create-target.sh $CHOST
# Use binary-dist lisp to create initial kernel.core
- ./src/tools/build-world.sh $CHOST ${srcdir}/bin/lisp
+ ./src/tools/build-world.sh $CHOST "${srcdir}"/bin/lisp
# build native lisp binary
./src/tools/rebuild-lisp.sh $CHOST
# Generate lisp.core
@@ -40,26 +40,29 @@
./src/tools/build-utils.sh $CHOST
# make new binary dist archives
./src/tools/make-dist.sh $CHOST ${pkgver} x86 linux
-
- mkdir -p ${pkgdir}/usr/lib/cmucl/
- mkdir -p ${pkgdir}/usr/share/man/man1
+}
+
+package() {
+ cd "${srcdir}"
+ mkdir -p "${pkgdir}"/usr/lib/cmucl/
+ mkdir -p "${pkgdir}"/usr/share/man/man1
mkdir dist
tar xjf cmucl-${pkgver}-x86-linux.tar.bz2 -C dist
tar xjf cmucl-${pkgver}-x86-linux.extra.tar.bz2 -C dist
- cp -a dist/bin ${pkgdir}/usr/lib/cmucl
- cp -a dist/lib/cmucl ${pkgdir}/usr/lib/
- cp -a dist/man/man1/* ${pkgdir}/usr/share/man/man1/
+ cp -a dist/bin "${pkgdir}"/usr/lib/cmucl
+ cp -a dist/lib/cmucl "${pkgdir}"/usr/lib/
+ cp -a dist/man/man1/* "${pkgdir}"/usr/share/man/man1/
## Setup app-wrapper
- install -m755 -p -D lib/cmucl/sample-wrapper ${pkgdir}/usr/bin/cmucl
+ install -m755 -p -D lib/cmucl/sample-wrapper "${pkgdir}"/usr/bin/cmucl
# Fixup paths in wrapper
- sed -i -e "s|^CMUCLLIB=.*|CMUCLLIB=/usr/lib/cmucl/lib|" ${pkgdir}/usr/bin/cmucl
- sed -i -e "s|/<<your-cmucl-path>>|/usr/lib/cmucl|" ${pkgdir}/usr/bin/cmucl
+ sed -i -e "s|^CMUCLLIB=.*|CMUCLLIB=/usr/lib/cmucl/lib|" "${pkgdir}"/usr/bin/cmucl
+ sed -i -e "s|/<<your-cmucl-path>>|/usr/lib/cmucl|" "${pkgdir}"/usr/bin/cmucl
# many apps (ie, maxima) expect to find the wrapper named 'lisp' too
- ln -sf cmucl ${pkgdir}/usr/bin/lisp
+ ln -sf cmucl "${pkgdir}"/usr/bin/lisp
## Unpackaged files
- rm -f ${pkgdir}/usr/lib/cmucl/sample-wrapper
+ rm -f "${pkgdir}"/usr/lib/cmucl/sample-wrapper
# license
- install -D -m644 ${srcdir}/src/general-info/COPYRIGHTS \
- ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
+ install -D -m644 "${srcdir}"/src/general-info/COPYRIGHTS \
+ "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
}
More information about the arch-commits
mailing list