summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD30
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d8680d23f0e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = monitor-git
+ pkgdesc = Capture and share terminal commands with Monitor.
+ pkgver = 20140708
+ pkgrel = 2
+ url = https://github.com/dtannen/monitor
+ arch = any
+ license = Creative Commons
+ makedepends = git
+ makedepends = make
+ depends = curl
+ provides = monitor
+ source = monitor-git::git://github.com/dtannen/monitor.git
+ md5sums = SKIP
+
+pkgname = monitor-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c92ec66f4aa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: wenLiangcan <boxeed at gmail dot com>
+
+pkgname=monitor-git
+pkgver=20140708
+pkgrel=2
+pkgdesc="Capture and share terminal commands with Monitor."
+arch=("any")
+url="https://github.com/dtannen/monitor"
+license=('Creative Commons')
+depends=('curl')
+makedepends=('git' 'make')
+provides=('monitor')
+source=("$pkgname"::'git://github.com/dtannen/monitor.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git log -1 --format='%cd' --date=short | tr -d -- '-'
+}
+
+build() {
+ cd "$pkgname"
+ make
+}
+
+package() {
+ cd "$pkgname"
+ install -Dm755 "monitor" "$pkgdir/usr/bin/monitor"
+ install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/monitor/LICENSE.txt"
+}