summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorquininer2018-02-04 00:23:08 +0800
committerquininer2018-02-04 00:23:08 +0800
commit1b92d036bece803b4669842c75188370e1afd8e9 (patch)
tree684b34288aef9678b7cc9905f7ba717bb17c70b6
downloadaur-cargo-web-git.tar.gz
init
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4eec9379f0f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = cargo-web-git
+ pkgdesc = A Cargo subcommand for the client-side Web
+ pkgver = 0.6.4.210.g77e40ef
+ pkgrel = 1
+ url = https://github.com/koute/cargo-web
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ depends = cargo
+ provides = cargo-web
+ conflicts = cargo-web
+ source = cargo-web-git::git+https://github.com/koute/cargo-web
+ sha256sums = SKIP
+
+pkgname = cargo-web-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..492ffda7757
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+pkgname=cargo-web-git
+pkgver=0.6.4.210.g77e40ef
+pkgrel=1
+pkgdesc="A Cargo subcommand for the client-side Web"
+arch=('x86_64')
+url="https://github.com/koute/cargo-web"
+license=('MIT')
+depends=('cargo')
+makedepends=('cargo')
+optdepends=()
+provides=('cargo-web')
+conflicts=('cargo-web')
+source=($pkgname::git+https://github.com/koute/cargo-web)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git describe --always)
+}
+
+build() {
+ cd $pkgname
+ cargo build --release
+}
+
+package() {
+ cd $pkgname
+ install -Dm755 "$srcdir/$pkgname/target/release/cargo-web" "$pkgdir/usr/bin/cargo-web"
+}