summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandy Carter2016-09-24 17:31:58 -0400
committerSandy Carter2016-09-24 17:31:58 -0400
commit076643c15a04c05f5aee0d1706385ebdab9420ce (patch)
tree3b7f03625d7ad397a68e531a6b0e6b2a8b47c648
downloadaur-076643c15a04c05f5aee0d1706385ebdab9420ce.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD36
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..aaee66f3e11
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Sat Sep 24 21:31:43 UTC 2016
+pkgbase = mingw-w64-udis86
+ pkgdesc = A minimalistic disassembler library
+ pkgver = 1.7.2
+ pkgrel = 1
+ url = http://udis86.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = mingw-w64-gcc
+ makedepends = mingw-w64-pkg-config
+ depends = python2
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ source = http://downloads.sourceforge.net/udis86/udis86-1.7.2.tar.gz
+ sha1sums = f55dec2d5319aac9d0a7ae2614ddcc7aa73d3744
+
+pkgname = mingw-w64-udis86
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..09a8bf41eaa
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+udis86-*.tar.gz
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5149c543623
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+pkgname=mingw-w64-udis86
+pkgver=1.7.2
+pkgrel=1
+pkgdesc="A minimalistic disassembler library"
+arch=('i686' 'x86_64')
+url="http://udis86.sourceforge.net/"
+license=("BSD")
+makedepends=(mingw-w64-gcc mingw-w64-pkg-config)
+depends=('python2')
+options=(!strip !buildflags staticlibs)
+source=("http://downloads.sourceforge.net/udis86/udis86-${pkgver}.tar.gz")
+sha1sums=('f55dec2d5319aac9d0a7ae2614ddcc7aa73d3744')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ for _arch in ${_architectures}; do
+ unset LDFLAGS
+ mkdir -p "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
+ cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
+ "${srcdir}"/udis86-${pkgver}/configure \
+ --prefix=/usr/${_arch} \
+ --build=$CHOST \
+ --host=${_arch}
+ make
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir/usr/${_arch}" -name '*.dll' | xargs -rtl1 ${_arch}-strip --strip-unneeded
+ find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs -rtl1 ${_arch}-strip -g
+ done
+}