MSYS2-packages/dash/PKGBUILD
Christoph Reiter e40c90814f Makedepend on gcc/make where needed
This means we no longer need msys2-devel
2021-12-13 22:19:56 +01:00

36 lines
967 B
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=dash
pkgver=0.5.11.5
pkgrel=1
pkgdesc="A POSIX compliant shell that aims to be as small as possible"
arch=('i686' 'x86_64')
url="http://gondor.apana.org.au/~herbert/dash/"
license=('BSD')
depends=('grep' 'sed' 'filesystem')
makedepends=('autotools' 'gcc')
install=dash.install
source=("http://gondor.apana.org.au/~herbert/dash/files/${pkgname}-${pkgver}.tar.gz")
sha256sums=('db778110891f7937985f29bf23410fe1c5d669502760f584e54e0e7b29e123bd')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--bindir=/usr/bin \
--mandir=/usr/share/man \
--exec-prefix="" \
CFLAGS='-O2 -static-libgcc'
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# license
install -m644 -D COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
ln -s ${pkgdir}/usr/bin/{d,}ash.exe
ln -s ${pkgdir}/usr/share/man/man1/{d,}ash.1
}