[arch-commits] Commit in dosbox/trunk (PKGBUILD)

Alexander Rødseth arodseth at nymeria.archlinux.org
Mon May 13 08:33:13 EDT 2013


    Date: Monday, May 13, 2013 @ 14:33:13
  Author: arodseth
Revision: 90629

Update for the latest version of gendesk compliance with the Mesa TODO

Modified:
  dosbox/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++++++++++++++++-----------------
 1 file changed, 23 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 12:25:45 UTC (rev 90628)
+++ PKGBUILD	2013-05-13 12:33:13 UTC (rev 90629)
@@ -6,25 +6,29 @@
 
 pkgname=dosbox
 pkgver=0.74
-pkgrel=5
-pkgdesc="Emulator with builtin DOS for running DOS Games"
-arch=('i686' 'x86_64')
-url="http://dosbox.sourceforge.net/"
+pkgrel=6
+pkgdesc='Emulator with builtin DOS for running DOS Games'
+arch=('x86_64' 'i686')
+url='http://dosbox.sourceforge.net/'
 license=('GPL')
 depends=('sdl_net' 'zlib' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs' 'glu')
-makedepends=('mesa' 'gendesk')
-source=("http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz"
-	'dosbox.png'
-	'gcc46.patch')
+makedepends=('mesa-libgl' 'gendesk')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+	      'dosbox.png'
+	      'gcc46.patch')
 md5sums=('b9b240fa87104421962d14eee71351e8'
          '2aac25fc06979e375953fcc36824dc5e'
          '3fba2e3c7c43290319b2928f40ed30e5')
 
-build(){
+prepare() {
   cd "$srcdir"
-  gendesk
 
-  cd "${pkgname}-${pkgver}"
+  gendesk --pkgname "$pkgname" --pkgdesc "$pkgdesc"
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
   patch -Np1 -i "$srcdir/gcc46.patch"
   sed -i 's/png_check_sig/png_sig_cmp/' configure 
   ./configure   --prefix=/usr \
@@ -33,16 +37,18 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  make DESTDIR="${pkgdir}" install 
+  cd "$srcdir/$pkgname-$pkgver"
 
+  make DESTDIR="$pkgdir" install 
 
   # install docs, make does not install them
   install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
   install -Dm644 docs/README.video "$pkgdir"/usr/share/doc/$pkgname/README.video
 
-  install -Dm644 "${srcdir}/${pkgname}.png" \
-    "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
-  install -Dm644 "${srcdir}/${pkgname}.desktop" \
-    "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+  install -Dm644 "$srcdir/$pkgname.png" \
+    "$pkgdir/usr/share/pixmaps/$pkgname.png"
+  install -Dm644 "$srcdir/$pkgname.desktop" \
+    "$pkgdir/usr/share/applications/$pkgname.desktop"
 }
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list