# Contributor: Geoffrey Teale <tealeg@member.fsf.org>
# Maintainer (aur): Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer: Aurélien Desbrières <aurelien@hackers.camp>

pkgname=quack  
pkgver=0.48
pkgrel=1
pkgdesc="[Emacs] enhanced support for editing and running Scheme code."
url="http://www.neilvandyke.org/quack"
arch=('any')
license=('GPL')
depends=('emacs')
makedepends=('emacs')
install=quack.install
source=("http://www.neilvandyke.org/${pkgname}/${pkgname}.el")
sha256sums=('1e581c9669ee0dfbfcc47954a82e06b34e9950b607872dde961ffb92cb5175c0')
EMACS=emacs # or sxemacs, or xemacs

build() {
  $EMACS --batch --eval '(byte-compile-file "quack.el")'
}

package() {
  install -Dm644 $pkgname.el $pkgdir/usr/share/$EMACS/site-lisp/$pkgname.el
  install -Dm644 $pkgname.elc $pkgdir/usr/share/$EMACS/site-lisp/$pkgname.elc
}
