You are not logged in.

#1 2009-07-17 03:11:10

Singularity
Member
Registered: 2009-05-24
Posts: 5

Updated Dosbox PKGBUILD

This is my first PKGBUILD, so fair warning there. tongue

Now, as you may or may not know, Bethesda has recently released Daggerfall for free.  But when I looked over Bethesda's forums, I found many posters stating that they were having problems installing it with Dosbox 0.72, and they recommended the newest 0.73.  With that in mind, I decided to go ahead and try updating the PKGBUILD for 0.73.  I did get it to successfully install, and I have Daggerfall working. I even updated the md5sum.

CAVEAT EMPTOR:  I removed the patch that was included with the 0.72 ABS, because the package wouldn't build otherwise.  However, I may very well have broken something vital, and only more testing will prove otherwise.  I'm a newb to this, so you have been warned. tongue

# $Id: PKGBUILD 3587 2008-06-25 21:44:15Z eric $
# Maintainer: eric <eric@archlinux.org>
# Contributor: Ben <ben@benmazer.net>

pkgname=dosbox
pkgver=0.73
pkgrel=1
pkgdesc="An emulator with builtin DOS for running DOS Games"
arch=(i686 x86_64)
url="http://dosbox.sourceforge.net/"
license=('GPL')
depends=('sdl_net' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs')
source=(http://heanet.dl.sourceforge.net/sourceforge/dosbox/$pkgname-$pkgver.tar.gz)
md5sums=('0823a11242db711ac3d6ebfff6aff572')

build()
{
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc/dosbox
  # Fix invalid permissions FS#10732
  chmod 755 $startdir/pkg/usr/man/man1
  make || return 1
  make prefix=$startdir/pkg/usr install
}
# vim: ts=2 sw=2 et ft=sh

Offline

#2 2009-07-17 05:13:31

Magnu5
Member
From: Finland
Registered: 2009-02-21
Posts: 19

Re: Updated Dosbox PKGBUILD

Works, played Daggerfall with it just now, on x86, And it builds on x86_64 too.

Offline

#3 2009-07-18 14:54:43

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Updated Dosbox PKGBUILD

Hello Singularity!

It's a very good package first time, i think, you will be a good package maintainer, hehe smile

Some cosmetic changes (without testing the operation after building, while running)

# Contributor: Ben <ben@benmazer.net>
# Maintainer: eric <eric@archlinux.org>

pkgname=dosbox
pkgver=0.73
pkgrel=1
pkgdesc="An emulator with builtin DOS for running DOS Games"
arch=('i686' 'x86_64')
url="http://dosbox.sourceforge.net/"
license=('GPL')
depends=('sdl_net' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs')
source=(http://downloads.sourceforge.net/sourceforge/dosbox/$pkgname-$pkgver.tar.gz)
md5sums=('0823a11242db711ac3d6ebfff6aff572')

build()
{
  cd ${srcdir}/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc/dosbox
  # Fix invalid permissions FS#10732
  chmod 755 $startdir/pkg/usr/man/man1
  make || return 1
  make prefix=${pkgdir}/usr install
}

Offline

#4 2009-07-18 16:23:27

Singularity
Member
Registered: 2009-05-24
Posts: 5

Re: Updated Dosbox PKGBUILD

Thanks! But all I did was bump up the pkgver, it's not too hard, really.  If I can do it, I'm sure others can too. wink  I may try my hand at being a package maintainer, but I won't have much free time when college starts back up again.  So I probably won't sign on as an official maintainer.  But if there's another package I want to use that needs updating, you can bet I'll try to fix it myself. (And probably break something, but oh well.) tongue

I want to say that I really like the PKGBUILD and ABS system.  I cannot think of another distro where it is this easy to update packages beyond official repos.  So cheers to the Arch devs for that. smile

Offline

#5 2009-07-18 21:24:14

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Updated Dosbox PKGBUILD

All My Respect to the pacman developers really, it's very kiss build system.

Offline

Board footer

Powered by FluxBB