pkgname=slang pkgver=2.3.3 pkgrel=1 pkgdesc="S-Lang is a powerful interpreted language" arch=('x86_64') url="https://www.jedsoft.org/slang/" license=('GPL-2.0-or-later') depends=('libpng') backup=(etc/slsh.rc) options=('!makeflags') source=(https://www.jedsoft.org/releases/slang/${pkgname}-${pkgver}.tar.bz2) sha256sums=(f9145054ae131973c61208ea82486d5dd10e3c5cdad23b7c4a0617743c8f5a18) build() { cd ${pkgname}-${pkgver} local configure_args=( --sysconfdir=/etc --with-readline=gnu ${configure_options} ) ./configure ${configure_args[@]} make RPATH= } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} \ install_doc_dir=/usr/share/doc/${pkgname}-${pkgver} \ SLSH_DOC_DIR=/usr/share/doc/${pkgname}-${pkgver}/slsh \ RPATH= \ install }