# Maintainer: TwoLeaves # Maintainer: kumax pkgname=sam pkgver=r64.a7b36ef pkgrel=1 pkgdesc="An adaption to C of the speech software SAM (Software Automatic Mouth) for the Commodore C64." url="https://simulationcorner.net/index.php?page=sam" arch=('x86_64' 'i686' 'aarch64') license=('unknown') depends=('sdl') makedepends=('git' 'patch') source=('SAM::git+https://github.com/s-macke/SAM/#branch=master' '2cb53f.patch::https://github.com/s-macke/SAM/commit/2cb53fbdbba78f2943e5ab6d4569d5e0a056e3ad.patch') md5sums=('SKIP' '328fde18fcc7706f02453a56d0f4e316') prepare() { cd "${srcdir}"/SAM || exit patch -p1 <"${srcdir}/2cb53f.patch" } pkgver() { cd SAM || exit printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${srcdir}/SAM" || exit make } package() { cd "${srcdir}/SAM" || exit install -Dm755 sam "${pkgdir}"/usr/bin/sam }