summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorValère Monseur2015-08-04 00:31:27 +0200
committerValère Monseur2015-08-04 00:31:27 +0200
commit49e38575c5f5e43925d0df5d9db6307f6c2e2801 (patch)
treec4f3519e24f4d307ea7eedc27f1aff1aab1e4432 /PKGBUILD
downloadaur-cbmbasic-git.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c0c031a8774
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Contributor: Manalishi <manalishi at freenet dot de>
+# Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
+
+_pkgname=cbmbasic
+pkgname=cbmbasic-git
+pkgver=0.r17.89093eb
+pkgrel=1
+pkgdesc="A 100% compatible version of Commodore's version of Microsoft BASIC 6502"
+arch=('i686' 'x86_64')
+url='https://github.com/mist64/cbmbasic/'
+license=('custom')
+depends=('glibc')
+makedepends=('git')
+provides=('cbmbasic')
+conflicts=('cbmbasic')
+source=("${_pkgname}"::'git+https://github.com/mist64/cbmbasic.git'
+ 'license')
+md5sums=('SKIP'
+ '75bfb930010784e9cacecac750607738')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+
+ printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ make
+}
+
+package() {
+ cd "${srcdir}"
+
+ install -Dm755 "${_pkgname}"/cbmbasic "${pkgdir}"/usr/bin/cbmbasic
+ install -dm755 "${pkgdir}"/usr/share/"${_pkgname}"
+ install -m644 "${_pkgname}"/test/*.bas "${pkgdir}"/usr/share/"${_pkgname}"
+ install -Dm644 license "${pkgdir}"/usr/share/licenses/"${_pkgname}"/license
+}