summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorquininer2018-01-08 13:35:40 +0800
committerquininer2018-01-08 13:35:40 +0800
commitcd7660de703b6c93a0950eedea08da817592dd76 (patch)
treea751d1af24d61266810aea1396d2a97511335f34
downloadaur-cd7660de703b6c93a0950eedea08da817592dd76.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..521d8af597d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = cargo-bloat-git
+ pkgdesc = Find out what takes most of the space in your executable
+ pkgver = 0.1.0.4.ge8c751b
+ pkgrel = 1
+ url = https://github.com/RazrFalcon/cargo-bloat
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ depends = cargo
+ provides = cargo-bloat
+ conflicts = cargo-bloat
+ source = cargo-bloat-git::git+https://github.com/RazrFalcon/cargo-bloat
+ sha256sums = SKIP
+
+pkgname = cargo-bloat-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f44f8274a93
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+pkgname=cargo-bloat-git
+pkgver=0.1.0.4.ge8c751b
+pkgrel=1
+pkgdesc="Find out what takes most of the space in your executable"
+arch=('x86_64')
+url="https://github.com/RazrFalcon/cargo-bloat"
+license=('MIT')
+depends=('cargo')
+makedepends=('cargo')
+optdepends=()
+provides=('cargo-bloat')
+conflicts=('cargo-bloat')
+source=($pkgname::git+https://github.com/RazrFalcon/cargo-bloat)
+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 -D -m755 "$srcdir/$pkgname/target/release/cargo-bloat" "$pkgdir/usr/bin/cargo-bloat"
+}