diff options
author | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-04 14:02:17 +0200 |
---|---|---|
committer | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-04 14:02:17 +0200 |
commit | 225a17562d33e26c2434694b4989d41e6ba1c854 (patch) | |
tree | c8f6c9b14e75d54c406455f6231c481526c8dd86 /pcr/mit-scheme | |
parent | 9947a5c08c19ac6c6096aa9942805b686566b411 (diff) |
mit-scheme
Diffstat (limited to 'pcr/mit-scheme')
-rw-r--r-- | pcr/mit-scheme/PKGBUILD | 91 |
1 files changed, 22 insertions, 69 deletions
diff --git a/pcr/mit-scheme/PKGBUILD b/pcr/mit-scheme/PKGBUILD index 7ab2e544e..c39cd6353 100644 --- a/pcr/mit-scheme/PKGBUILD +++ b/pcr/mit-scheme/PKGBUILD @@ -1,80 +1,33 @@ -# Contributor (Arch): peter feigl <peter.feigl@gmail.com> -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> +# Contributor (Arch) : Bartłomiej Piotrowski <nospam@bpiotrowski.pl> +# Contributor (Arch) : peter feigl <peter.feigl@gmail.com> +# Maintainer (Parabola): Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgname=mit-scheme -pkgver=9.1.1 +pkgver=9.2 pkgrel=1 -pkgdesc="MIT/GNU Scheme" -arch=('x86_64' i686) +pkgdesc='MIT/GNU Scheme' +arch=('i686' 'x86_64') license=('GPL') -url="http://www.gnu.org/software/mit-scheme/" -groups= -provides=('mit-scheme') -depends=('libx11' 'texinfo' 'texlive-core') -optdepends=('mhash: support for mhash' 'gdbm: support for gdbm' - 'postgresql-libs: support for postresql' 'openssl: support for openssl' - 'mcrypt: support for mcrypt' 'db: support for berkeley db') -_my_arch=$(uname -m) -if [ ${_my_arch} = "x86_64" ] -then -_my_arch="x86-64" -md5sums=('268cb5ac97646f34742828ebc370586d') +url='http://www.gnu.org/software/mit-scheme/' +depends=('glibc' 'ncurses' 'zlib') +optdepends=('openssl: support for openssl') + +if [[ $CARCH == i686 ]]; then + _arch=i386 else -_my_arch="i386" -md5sums=('e35590a06549d71edba723a719329070') + _arch=x86-64 fi - -source=("http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/${pkgver}/${pkgname}-${pkgver}-${_my_arch}.tar.gz") +source=(http://ftp.gnu.org/gnu/$pkgname/stable.pkg/$pkgver/$pkgname-$pkgver-$_arch.tar.gz) build() { - cd $startdir/src/${pkgname}-${pkgver}/src - ./configure --with-x --enable-native-code --prefix=/usr || return 1 - make compile-microcode || return 1 - make DESTDIR=${pkgdir} install || return 1 - # TODO: add indexer - echo Making Documentation - cd ../doc && ./configure --prefix=/usr && make -j 1 && make DESTDIR=${pkgdir} install && rm ${pkgdir}/usr/share/info/dir && mv ${pkgdir}/usr/share/man/man1/scheme.1 ${pkgdir}/usr/share/man/man1/mit-scheme.1 || return 0 -} - - -infodir=usr/share/info - -filelist=(mit-scheme-ffi.info mit-scheme-imail.info mit-scheme-ref.info mit-scheme-sos.info mit-scheme-user.info) - - - -post_install() { - - [[ -x usr/bin/install-info ]] || return 0 - - for file in "${filelist[@]}"; do - - install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null - - done - + cd $pkgname-$pkgver/src + ./configure --prefix=/usr \ + --with-x \ + --enable-native-code + make } - - -post_upgrade() { - - post_install "$1" - -} - - - -pre_remove() { - - [[ -x usr/bin/install-info ]] || return 1 - - for file in "${filelist[@]}"; do - - install-info --delete "$infodir/$file.gz" "$infodir/dir" 2>/dev/null - - done - +package() { + cd $pkgname-$pkgver/src + make DESTDIR="$pkgdir" install } - -md5sums=('e35590a06549d71edba723a719329070') |