diff options
author | Sergej Pupykin | 2015-06-13 00:48:31 +0300 |
---|---|---|
committer | Sergej Pupykin | 2015-06-13 00:48:31 +0300 |
commit | 2194363c7e409d690824900360834fa7c3de4c27 (patch) | |
tree | 0ae04a385b1a12b24ebb3d7af534212c2c436f9b | |
download | aur-2194363c7e409d690824900360834fa7c3de4c27.tar.gz |
migrate to aur4
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 56 |
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a7fc6fbbc100 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = qemu-static + pkgdesc = A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation. + pkgver = 2.3.0 + pkgrel = 1 + url = http://wiki.qemu.org/Index.html + arch = i686 + arch = x86_64 + license = GPL2 + license = LGPL2.1 + makedepends = perl + makedepends = python2 + makedepends = glibc-static + makedepends = glib2-static + makedepends = pcre-static + depends = qemu + options = !strip + source = http://wiki.qemu.org/download/qemu-2.3.0.tar.bz2 + md5sums = 2fab3ea4460de9b57192e5b8b311f221 + +pkgname = qemu-static + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e055ce616ede --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +pkgname='qemu-static' +pkgver=2.3.0 +pkgrel=1 +arch=('i686' 'x86_64') +license=('GPL2' 'LGPL2.1') +url="http://wiki.qemu.org/Index.html" +pkgdesc="A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation." +depends=('qemu') +makedepends=('perl' 'python2' + 'glibc-static' 'glib2-static' 'pcre-static') +options=(!strip) +source=(http://wiki.qemu.org/download/qemu-${pkgver}.tar.bz2) +md5sums=('2fab3ea4460de9b57192e5b8b311f221') + +build() { + cd "${srcdir}/qemu-${pkgver}" + export LDFLAGS="-L/usr/lib" + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --static --python=/usr/bin/python2 --disable-werror \ + --disable-docs --disable-gtk --disable-vnc --disable-kvm --disable-libssh2 \ + --enable-user --disable-system \ + --disable-fdt --disable-libnfs --disable-glusterfs --disable-libiscsi + make +} + +package() { + cd "${srcdir}/qemu-${pkgver}" + make DESTDIR="${pkgdir}" libexecdir="/usr/lib/qemu" install + # provided by seabios package + rm "${pkgdir}/usr/share/qemu/bios.bin" + rm "${pkgdir}/usr/share/qemu/acpi-dsdt.aml" + rm "${pkgdir}/usr/share/qemu/q35-acpi-dsdt.aml" + # remove conflicting /var/run directory + rm -r "${pkgdir}/var" + # bridge_helper needs suid + # https://bugs.archlinux.org/task/32565 + chmod u+s "${pkgdir}/usr/lib/qemu/qemu-bridge-helper" + # add sample config + echo "allow br0" > ${pkgdir}/etc/qemu/bridge.conf.sample + # strip scripts directory + find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do + case "$(file -bi "$binary")" in + *application/x-executable*) # Binaries + /usr/bin/strip $STRIP_BINARIES "$binary";; + esac + done + # remove libcacard files + rm -rf ${pkgdir}/usr/lib/libcacard* + rm -rf ${pkgdir}/usr/lib/pkgconfig/libcacard.pc + rm -rf ${pkgdir}/usr/bin/vscclient + rm -rf ${pkgdir}/{etc,usr/{lib,share}} + cd ${pkgdir}/usr/bin/ + ls -1 | while read f; do + mv "$f" "$f-static" + done +} |