summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Lamby2015-10-20 21:31:45 +0200
committerPeter Lamby2015-10-20 21:31:45 +0200
commita825c2ac98a8d677d052e8dd49935f48bc8e04ed (patch)
treeaaa7a3e5b239cb3f1dcf7274249d815cdb086b1b
downloadaur-a825c2ac98a8d677d052e8dd49935f48bc8e04ed.tar.gz
Add check50 1.19-1
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD27
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ad97adba748
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = check50
+ pkgdesc = Code check tool for CS50 / CS50x (Harvard College's Introduction to Computer Science I)
+ pkgver = 1.19
+ pkgrel = 1
+ url = https://github.com/jthurner/check50
+ arch = any
+ license = CCPL
+ depends = nodejs
+ source = check50::git://github.com/jthurner/check50.git#commit=a41738d664ad9a04f6da645bb1069d2abff8ce65
+ md5sums = SKIP
+
+pkgname = check50
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9a60c2fb7cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Joschka Thurner <mail@joschkathurner.de>
+pkgname=check50
+pkgver=1.19
+pkgrel=1
+pkgdesc="Code check tool for CS50 / CS50x (Harvard College's Introduction to Computer Science I)"
+arch=('any')
+url="https://github.com/jthurner/check50"
+license=('CCPL')
+depends=('nodejs')
+source=("$pkgname"::'git://github.com/jthurner/check50.git#commit=a41738d664ad9a04f6da645bb1069d2abff8ce65')
+md5sums=('SKIP')
+
+prepare() {
+ #fix file permissions
+ find "$srcdir/$pkgname/SOURCES/opt/" -type f -exec chmod 644 {} \;
+
+ #overwrite php launcher
+ echo -e '#!/bin/sh\nexec /usr/bin/node /opt/check50/bin/check50.js "$@"' > "$srcdir/$pkgname/SOURCES/opt/check50/bin/check50"
+ chmod 755 "$srcdir/$pkgname/SOURCES/opt/check50/bin/check50"
+}
+
+
+package() {
+ install -dm755 "$pkgdir/usr/bin"
+ cp -a "$srcdir/$pkgname/SOURCES/opt/" "$pkgdir"
+ ln -s "/opt/check50/bin/check50" "$pkgdir/usr/bin/check50"
+}