summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Arndt2020-06-08 20:20:34 +0200
committerChristopher Arndt2020-06-08 20:20:34 +0200
commit4db4bc46d398a9bbe1232f7aacfd58820534dfca (patch)
tree452863f7d08d4adb7f2081b2967b67cec815101b
downloadaur-castools-git.tar.gz
Add new VCS package 'castools-git'
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD37
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2c3ac25b27c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = castools-git
+ pkgdesc = Convert WAV files of MSX tapes into .cas format and back (git version)
+ pkgver = 1.31.r7.218b177
+ pkgrel = 1
+ url = http://home.kabelfoon.nl/~vincentd/
+ arch = x86_64
+ license = GPL2
+ depends = glibc
+ provides = castools
+ conflicts = castools
+ source = castools::git+https://github.com/joyrex2001/castools.git
+ sha256sums = SKIP
+
+pkgname = castools-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..c6ca123dfe4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+castools/
+pkg/
+src/
+castools-git-*.pkg.tar.xz
+castools-git-*.pkg.tar.zst
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}"
+}