summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Squartini2018-10-07 19:40:18 +0200
committerFederico Squartini2018-10-07 19:40:18 +0200
commited24eb4a3a22c0f006f0cf97e74d4877670d0240 (patch)
tree1cd735853145cd1a2485d98530adb2c53ee8e9be
downloadaur-ed24eb4a3a22c0f006f0cf97e74d4877670d0240.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD25
3 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..73a43ae1aa2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = exercism
+ pkgdesc = Command line client for https://exercism.io
+ pkgver = 3.0.10
+ pkgrel = 1
+ url = https://github.com/exercism/cli
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = go
+ source = https://github.com/exercism/cli/archive/v3.0.10.tar.gz
+ sha256sums = 0dbb34ba3bb3571fbc75fa9f5cb0b061317589a98a1af12fe7318a2c4cdbda5b
+
+pkgname = exercism
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b5bc2aa573e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg
+src
+*.tar.xz
+*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dd16a67442c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Federico Squartini <federico.squartini at gmail dot com>
+
+pkgname=exercism
+pkgver=3.0.10
+pkgrel=1
+pkgdesc="Command line client for https://exercism.io"
+arch=("i686" "x86_64")
+url="https://github.com/exercism/cli"
+license=("MIT")
+makedepends=('go')
+source=("https://github.com/exercism/cli/archive/v${pkgver}.tar.gz")
+sha256sums=('0dbb34ba3bb3571fbc75fa9f5cb0b061317589a98a1af12fe7318a2c4cdbda5b')
+
+build() {
+ cd $srcdir/cli-${pkgver}
+ go build -o out/exercism exercism/main.go
+}
+
+package(){
+ cd $srcdir/cli-${pkgver}
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 shell/exercism_completion.bash "$pkgdir/usr/share/$pkgname/completion/exercism_completion.bash"
+ install -D -m644 shell/exercism_completion.zsh "$pkgdir/usr/share/$pkgname/completion/exercism_completion.zsh"
+ install -D out/exercism "$pkgdir/usr/bin/exercism"
+}