summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorquininer2019-11-16 14:42:56 +0800
committerquininer2019-11-16 14:42:56 +0800
commitdd075770a96e4baa4b14736245f29744daf3c674 (patch)
treee6fdf8a66d0abbebd367e265349d12eb23a66877
downloadaur-cargo-dinghy-git.tar.gz
init
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD30
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..eed3b3c82e22
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = cargo-dinghy-git
+ pkgdesc = Easier cross-compilation for phones and single boards computers
+ pkgver = 0.4.19.552
+ pkgrel = 1
+ url = https://github.com/snipsco/dinghy
+ arch = i686
+ arch = x86_64
+ license = Apache
+ license = MIT
+ makedepends = rust
+ makedepends = cargo
+ depends = rust
+ depends = cargo
+ optdepends = android-tools: android support
+ optdepends = android-ndk: android support
+ provides = cargo-dinghy
+ conflicts = cargo-dinghy
+ source = dinghy::git+https://github.com/snipsco/dinghy
+ sha256sums = SKIP
+
+pkgname = cargo-dinghy-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..ce6543830807
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+pkgname=cargo-dinghy-git
+_pkgname=dinghy
+pkgdesc="Easier cross-compilation for phones and single boards computers"
+pkgrel=1
+pkgver=0.4.19.552
+arch=('i686' 'x86_64')
+conflicts=("cargo-dinghy")
+provides=("cargo-dinghy")
+url="https://github.com/snipsco/dinghy"
+license=('Apache' 'MIT')
+depends=('rust' 'cargo')
+makedepends=('rust' 'cargo')
+optdepends=('android-tools: android support' 'android-ndk: android support')
+source=("$_pkgname::git+https://github.com/snipsco/dinghy")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname/cargo-dinghy
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD)"
+}
+
+build() {
+ cd $_pkgname/cargo-dinghy
+ cargo build --release
+}
+
+package() {
+ cd $_pkgname
+ install -D -m755 "$srcdir/$_pkgname/target/release/cargo-dinghy" "$pkgdir/usr/bin/cargo-dinghy"
+}