summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0e777e831bed167b45d1166d4714a74d401e511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: TwoLeaves <ohneherren@gmail.com>
# Maintainer: kumax <kumax2048@yandex.com>
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
}