summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Mendez2015-09-29 11:06:19 -0400
committerManuel Mendez2015-09-29 11:06:19 -0400
commit0c6515a2849ce5046f7e34f185485dfb6e66b578 (patch)
tree662e89727bd1766af034256dff40fdb2be23e791
downloadaur-0c6515a2849ce5046f7e34f185485dfb6e66b578.tar.gz
initial package
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD33
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5fc952b99af
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = bcc-git
+ pkgdesc = BPF Compiler Collection
+ pkgver = v0.1.6.r134.4d97f7f
+ pkgrel = 1
+ url = https://github.com/iovisor/bcc
+ arch = x86_64
+ arch = x86
+ license = Apache
+ makedepends = git
+ makedepends = cmake
+ makedepends = python
+ depends = python
+ provides = bcc
+ conflicts = bcc
+ source = git+https://github.com/iovisor/bcc
+ md5sums = SKIP
+
+pkgname = bcc-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..8f3c037748a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+.*
+!.SRCINFO
+!.gitignore
+*.pkg.*
+bcc/
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..182a53cef85
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Manuel Mendez <mmendez534@gmail.com>
+pkgname=bcc-git
+pkgver=v0.1.6.r134.4d97f7f
+pkgrel=1
+pkgdesc="BPF Compiler Collection"
+arch=(x86_64 x86)
+url="https://github.com/iovisor/bcc"
+license=('Apache')
+depends=('python')
+makedepends=('git' 'cmake' 'python')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/iovisor/bcc')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+
+}
+
+build() {
+ [[ -d "$srcdir/${pkgname%-git}/build" ]] && rm -rf "$srcdir/${pkgname%-git}/build"
+ mkdir "$srcdir/${pkgname%-git}/build"
+ cd "$srcdir/${pkgname%-git}/build"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ..
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}/build"
+ make DESTDIR="$pkgdir/" install
+}