From f432fc7fcb0dec971f9e0e190532698cc9e8ead7 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 17 Feb 2016 09:30:53 +0100 Subject: [PATCH] New package: unicorn-0.9 --- common/shlibs | 1 + srcpkgs/unicorn-devel | 1 + srcpkgs/unicorn/template | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 120000 srcpkgs/unicorn-devel create mode 100644 srcpkgs/unicorn/template diff --git a/common/shlibs b/common/shlibs index 6f1b855eda2..3628ab6fa92 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2352,3 +2352,4 @@ libnetfilter_cthelper.so.0 libnetfilter_cthelper-1.0.0_1 libnetfilter_queue.so.1 libnetfilter_queue-1.0.2_1 libfilezilla.so.0 libfilezilla-0.3.1_1 libtommath.so.1 libtommath-1.0_1 +libunicorn.so.0 unicorn-0.9_1 diff --git a/srcpkgs/unicorn-devel b/srcpkgs/unicorn-devel new file mode 120000 index 00000000000..30128f2552c --- /dev/null +++ b/srcpkgs/unicorn-devel @@ -0,0 +1 @@ +unicorn/ \ No newline at end of file diff --git a/srcpkgs/unicorn/template b/srcpkgs/unicorn/template new file mode 100644 index 00000000000..e03016ce599 --- /dev/null +++ b/srcpkgs/unicorn/template @@ -0,0 +1,40 @@ +# Template file for 'unicorn' +pkgname=unicorn +version=0.9 +revision=1 +only_for_archs="x86_64 x86_64-musl i686 i686-musl" +hostmakedepends="pkg-config python" +makedepends="glib-devel" +short_desc="Lightweight multi-platform, multi-architecture CPU emulator framework" +maintainer="Michael Gehring " +license="GPL-2" +homepage="http://www.unicorn-engine.org/" +distfiles="https://github.com/unicorn-engine/unicorn/archive/${version}.tar.gz" +checksum=1ca03b1c8f6360335567b528210713461e839d47c4eb7c676ba3aa4f72b8cf10 + +post_extract() { + # don't build the samples + echo "clean:" > samples/Makefile + # fix unicorn.pc paths + sed 's,libdir=$(LIBDIR),libdir=$(PREFIX)/${LIBDIRARCH},g' -i Makefile + sed 's,includedir=$(INCDIR),includedir=$(PREFIX)/include,g' -i Makefile +} + +do_build() { + make +} + +do_install() { + make DESTDIR=${PKGDESTDIR} install +} + +unicorn-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + } +}