summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaizhao Zhang2018-04-20 16:50:13 +0800
committerKaizhao Zhang2018-04-20 16:50:13 +0800
commit03515664407607b21749c4596a4ea7faa5bd294c (patch)
treede52eeb9488e352c685cf3fc00c689235600065b
downloadaur-03515664407607b21749c4596a4ea7faa5bd294c.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD28
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..38093b8e6b0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = rbspy
+ pkgdesc = Sampling profiler for Ruby
+ pkgver = 0.2.7
+ pkgrel = 1
+ url = https://rbspy.github.io
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ provides = rbspy
+ conflicts = rbspy
+ source = https://github.com/rbspy/rbspy/archive/v0.2.7.tar.gz
+ sha512sums = 16b051ca2c838e0b5bab4186ca16ce5a92df278c01e8f94102d732c4f229f2a1edf86855783ca0ef1be71414039f757ce7f22405b11e370efde37288fa7d5f97
+
+pkgname = rbspy
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..924dfb95c20
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/
+src/
+*.tar.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b7348f06855
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
+
+pkgname=rbspy
+pkgver=0.2.7
+pkgrel=1
+pkgdesc="Sampling profiler for Ruby"
+url="https://rbspy.github.io"
+makedepends=('cargo')
+arch=('x86_64')
+license=('MIT')
+provides=('rbspy')
+conflicts=('rbspy')
+source=("https://github.com/rbspy/rbspy/archive/v${pkgver}.tar.gz")
+sha512sums=('16b051ca2c838e0b5bab4186ca16ce5a92df278c01e8f94102d732c4f229f2a1edf86855783ca0ef1be71414039f757ce7f22405b11e370efde37288fa7d5f97')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -D -m755 target/release/rbspy "${pkgdir}/usr/bin/rbspy"
+ install -D -m644 License.md "$pkgdir/usr/share/licenses/$pkgname/License.md"
+ install -D -m644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+ install -D -m644 ARCHITECTURE.md "$pkgdir/usr/share/doc/$pkgname/ARCHITECTURE.md"
+ install -D -m644 CODE_OF_CONDUCT.md "$pkgdir/usr/share/doc/$pkgname/CODE_OF_CONDUCT.md"
+}