summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Schulte2019-04-12 14:56:05 -0400
committerEric Schulte2019-04-12 14:56:05 -0400
commitc3a2908bbb12ed9616f2748ed2472459d54fea93 (patch)
treea71f79ac7dde8c876a36c628495588099913f7f5
downloadaur-c3a2908bbb12ed9616f2748ed2472459d54fea93.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD34
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2e89eb4ac14
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ddisasm-git
+ pkgdesc = A fast and accurate disassembler
+ pkgver = r413.baf2b07
+ pkgrel = 1
+ url = https://github.com/grammatech/ddisasm
+ arch = x86_64
+ license = aGPLv3
+ makedepends = git
+ makedepends = cmake
+ makedepends = souffle-git
+ makedepends = mcpp
+ makedepends = gtirb
+ makedepends = capstone
+ provides = ddisasm
+ source = git+https://git.grammatech.com/rewriting/ddisasm.git#branch=cmake-install
+ sha512sums = SKIP
+
+pkgname = ddisasm-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4e891e6ec62
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+ddisasm/
+ddisasm-*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..83c638aca20
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Contributor: Eric Schulte <eschulte@grammatech.com>
+# Maintainer: Eric Schulte <eschulte@grammatech.com>
+_srcname=ddisasm
+pkgname=ddisasm-git
+pkgver=v0.1.0.r0.gc2744b8
+pkgrel=1
+pkgdesc="A fast and accurate disassembler"
+arch=('x86_64')
+url="https://github.com/grammatech/ddisasm"
+license=('aGPLv3')
+depends=()
+makedepends=('git' 'cmake' 'souffle-git' 'mcpp' 'gtirb' 'capstone')
+provides=('ddisasm')
+source=('git://github.com/grammatech/ddisasm.git')
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "$_srcname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$_srcname/"
+ # CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
+ # CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
+ # LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
+ CFLAGS="" CXXFLAGS="" LDFLAGS="" cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=/usr
+ make -C build
+}
+
+package() {
+ cd "$_srcname/build"
+ make DESTDIR="$pkgdir" install
+}