summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristopher Arndt2020-06-08 20:20:34 +0200
committerChristopher Arndt2020-06-08 20:20:34 +0200
commit4db4bc46d398a9bbe1232f7aacfd58820534dfca (patch)
tree452863f7d08d4adb7f2081b2967b67cec815101b /PKGBUILD
downloadaur-4db4bc46d398a9bbe1232f7aacfd58820534dfca.tar.gz
Add new VCS package 'castools-git'
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b2178a9c7ba
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot de>
+
+_pkgname=castools
+pkgname="${_pkgname}-git"
+pkgver=1.31.r7.218b177
+pkgrel=1
+pkgdesc="Convert WAV files of MSX tapes into .cas format and back (git version)"
+arch=('x86_64')
+url="http://home.kabelfoon.nl/~vincentd/"
+license=('GPL2')
+depends=('glibc')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+https://github.com/joyrex2001/${_pkgname}.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ local ver="$(grep '^/\* version:' wav2cas.c | awk '{print $3}')"
+ echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ make CFLAGS="$CFLAGS" cpu
+ make CFLAGS="$CFLAGS $LDFLAGS" CLIBS= wav2cas casdir
+ make CFLAGS="$CFLAGS $LDFLAGS" cas2wav
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ # install binaries
+ install -s -Dm755 wav2cas cas2wav casdir -t "${pkgdir}/usr/bin"
+ # documentation
+ install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}