[arch-commits] Commit in dosemu/trunk (PKGBUILD)
Balló György
bgyorgy at nymeria.archlinux.org
Sun Sep 8 13:52:22 UTC 2013
Date: Sunday, September 8, 2013 @ 15:52:22
Author: bgyorgy
Revision: 96918
upgpkg: dosemu 1.4.0.8-1
- Update to version 1.4.0.8 (tagged on 2012-12-22)
- General cleanup
- Add .desktop file
Modified:
dosemu/trunk/PKGBUILD
----------+
PKGBUILD | 43 ++++++++++++++++---------------------------
1 file changed, 16 insertions(+), 27 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-09-08 09:23:12 UTC (rev 96917)
+++ PKGBUILD 2013-09-08 13:52:22 UTC (rev 96918)
@@ -5,37 +5,29 @@
# Contributor: Bob Finch <w9ya at arrl.net>
pkgname=dosemu
-pkgver=1.4.0
-pkgrel=9
+pkgver=1.4.0.8
+pkgrel=1
pkgdesc="DOS emulator"
arch=('i686' 'x86_64')
url="http://www.dosemu.org/"
license=('GPL' 'custom')
-depends=('gpm' 'slang' 'sdl' 'libxxf86vm' 'libsndfile' 'sh' 'xorg-mkfontdir' 'xorg-bdftopcf' 'xorg-xlsfonts')
+depends=('gpm' 'slang' 'sdl' 'libxxf86vm' 'libsndfile')
+makedepends=('git' 'xorg-mkfontdir' 'xorg-bdftopcf' 'gendesk' 'imagemagick')
backup=('etc/dosemu/dosemu.conf'
'etc/dosemu/dosemu.users'
'etc/dosemu/global.conf')
-install=dosemu.install
-source=(http://downloads.sourceforge.net/sourceforge/dosemu/$pkgname-$pkgver.tgz
- http://downloads.sourceforge.net/sourceforge/dosemu/dosemu-freedos-1.0-bin.tgz
- kernel_version.patch
- fix-infinite-loop.patch
- cpu-support.patch)
-md5sums=('0bba530637266f99d404ba15e3f118d4'
- '2e09774fe91cff4372cb4a393eb467f5'
- '15af2ca86b2e7d8835f0f837ea663c3d'
- 'e8ea87d46c613130b26724facb5aa297'
- 'ebb17406a7d302f6c4ad2b67304f31b6')
+source=($pkgname-$pkgver::git://git.code.sf.net/p/dosemu/code#tag=$pkgname-$pkgver
+ http://downloads.sourceforge.net/sourceforge/dosemu/dosemu-freedos-1.0-bin.tgz)
+md5sums=('SKIP'
+ '2e09774fe91cff4372cb4a393eb467f5')
+prepare() {
+ cd $srcdir/$pkgname-$pkgver
+ gendesk -n --pkgname=$pkgname --pkgdesc='DOS emulator' --categories='System;Emulator'
+}
+
build() {
cd $srcdir/$pkgname-$pkgver
-
- patch -Np1 -i ${srcdir}/kernel_version.patch
- patch -Np1 -i ${srcdir}/fix-infinite-loop.patch
- patch -Np1 -i ${srcdir}/cpu-support.patch
- sed -i 's|extern int yyget_leng|extern size_t yyget_leng|' src/base/init/lexer.h
-
- unset CFLAGS
./configure --prefix=/usr --with-fdtarball=$srcdir/dosemu-freedos-1.0-bin.tgz --mandir=/usr/share/man
make
}
@@ -42,13 +34,10 @@
package(){
cd $srcdir/$pkgname-$pkgver
-
make DESTDIR=$pkgdir install
-
- ln -s /usr/share/dosemu/drive_z $pkgdir/etc/dosemu/drives/z
- install -dm0755 $pkgdir/etc/sysctl.d
- echo "vm.mmap_min_addr = 0" >$pkgdir/etc/sysctl.d/dosemu.conf
-
+ install -dm755 $pkgdir/usr/share/pixmaps
+ convert etc/$pkgname.xpm $pkgdir/usr/share/pixmaps/$pkgname.png
+ install -D -m 644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
install -D -m 644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
install -D -m 644 COPYING.DOSEMU $pkgdir/usr/share/licenses/$pkgname/COPYING.DOSEMU
}
More information about the arch-commits
mailing list