Skip to content

Instantly share code, notes, and snippets.

@nosada

nosada/qtemu.patch

Last active Dec 23, 2015
Embed
What would you like to do?
patch for qtemu's PKGBUILD (patching src/machinetab.cpp and generating .desktop by gendesk)
--- PKGBUILD 2013-09-23 07:06:52.000000000 +0900
+++ PKGBUILD.changed 2013-09-22 15:53:36.000000000 +0900
@@ -12,12 +12,17 @@
makedepends=('cmake')
depends=('qemu' 'qt4')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
- http://qtemu.svn.sourceforge.net/viewvc/qtemu/trunk/qtemu/misc/qtemu.desktop)
+ machinetab.patch)
md5sums=('3b93e209dc62e52a1d94c8eb24d0b149'
- 'b323b75384fdb327728d2603979f7202')
+ 'e5fae20613874a2a253520a0a2a86ff2')
+
+prepare() {
+ gendesk -f --pkgname "$pkgname" --pkgdesc "$pkgdesc"
+}
build() {
cd "$srcdir/$pkgname-$pkgver"
+ patch -u < $startdir/machinetab.patch
cmake -DCMAKE_INSTALL_PREFIX=/opt/qtemu .
make
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment