summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD24
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..793994de79f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = asd
+ pkgdesc = Preview Github Markdown Offline
+ pkgver = 0.1.0
+ pkgrel = 1
+ url = https://github.com/grapegrip/asd
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = rust
+ makedepends = cargo
+ conflicts = asd-git
+ source = asd-0.1.0.tar.gz::https://github.com/grapegrip/asd/archive/0.1.0.tar.gz
+ sha256sums = 9257a56c4c22460d2927dcdeb4e4ac16787552c3a213c1e1baf23fd4e270b9e2
+
+pkgname = asd
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..027baab9f8f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Wesley Moore <wes@wezm.net>
+pkgname=asd
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Preview Github Markdown Offline'
+arch=('i686' 'x86_64')
+url="https://github.com/grapegrip/asd"
+license=('MIT')
+depends=()
+conflicts=('asd-git')
+makedepends=('rust' 'cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha256sums=('9257a56c4c22460d2927dcdeb4e4ac16787552c3a213c1e1baf23fd4e270b9e2')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release
+}
+
+package() {
+ install -Dm755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ # License is coming in next release
+ # install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+}