# Maintainer: Erich Eckner # Contributor: epitron pkgname=wcc-git _pkgname=wcc pkgver=0.0.6.r13.g08f67cd pkgrel=1 pkgdesc="The Witchcraft Compiler Collection" arch=('i486' 'i686' 'pentium4' 'x86_64') license=('MIT') _pinned_dependencies=( 'binutils=2.43+r4+g7999dae6961' 'capstone=5.0.1' 'glibc>=2.33' 'libelf=0.191' 'zlib=1:1.3.1' 'zstd=1.5.6' ) depends=(binutils readline gsl "${_pinned_dependencies[@]}") makedepends=(git make) provides=(wcc=${pkgver%.r*.g*}) conflicts=(wcc) url=https://github.com/endrazine/wcc source=("git+https://github.com/endrazine/wcc.git") sha512sums=('SKIP') pkgver() { cd "$_pkgname" git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' } prepare() { cd "$_pkgname" git submodule init git submodule update } build() { cd "$_pkgname" make } package() { cd "$_pkgname" install -d "${pkgdir}/usr/bin" make DESTDIR="${pkgdir}/" install # install manpages install -d "${pkgdir}/usr/share/man/man1/" install -pm 644 doc/manpages/* $pkgdir/usr/share/man/man1 }