[arch-commits] Commit in abuse/repos/community-x86_64 (5 files)

Antonio Rojas arojas at gemini.archlinux.org
Wed Sep 1 18:31:05 UTC 2021


    Date: Wednesday, September 1, 2021 @ 18:31:05
  Author: arojas
Revision: 1010337

archrelease: copy trunk to community-x86_64

Added:
  abuse/repos/community-x86_64/PKGBUILD
    (from rev 1010336, abuse/trunk/PKGBUILD)
Deleted:
  abuse/repos/community-x86_64/PKGBUILD
  abuse/repos/community-x86_64/abuse.sh
  abuse/repos/community-x86_64/default.abuserc
  abuse/repos/community-x86_64/default.gamma.lsp

-------------------+
 PKGBUILD          |  103 ++++++++++++++++++++--------------------------------
 abuse.sh          |   15 -------
 default.abuserc   |   37 ------------------
 default.gamma.lsp |    1 
 4 files changed, 40 insertions(+), 116 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-01 18:30:54 UTC (rev 1010336)
+++ PKGBUILD	2021-09-01 18:31:05 UTC (rev 1010337)
@@ -1,63 +0,0 @@
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: Lukas Fleischer <lfleischer at archlinux.org>
-# Contributor: jlvsimoes <jlvsimoes at oninet.pt>
-# Contributor: kevin <kevin at archlinux.org>
-
-pkgname=abuse
-pkgver=0.8
-pkgrel=11
-pkgdesc='Side-scroller action game that pits you against ruthless alien killers'
-arch=(x86_64)
-url='http://abuse.zoy.org/'
-license=(custom GPL)
-depends=(libglvnd sdl_mixer)
-makedepends=(gendesk glu mesa)
-source=("http://abuse.zoy.org/raw-attachment/wiki/download/$pkgname-$pkgver.tar.gz"
-        abuse.sh
-        default.abuserc
-        default.gamma.lsp)
-b2sums=('4f52256b7bf13e0efa77ef50147a976fdf1fceec4ce20fb4b855a9961a7c816cf08bf51286b424da42072956a137bc3385357cfdb61bf37ff9f907284d99e09c'
-        '6301cc73db634fc5df21452754dde86324b2dff5cc0dff8620443ee115b691820751ffb78b667374e46f00d7b86c165f787a1a57d1bca5edea8bad8b0b05a3bc'
-        '362bb4f5e9909a8d9d664abf453f4c9b6f0c516666a4b33f653239fafda331416e571ce7af58f1b951f66fb612746462e508e61f20547cf0d538e7b8ae5fe39d'
-        'ec12493a94a0163bc0396b4adaf5ae913b491a43529474c9d54cacf44ac37bede0f21a74d93f2e584b1b511e049b2787e60e95c31dc9ae9079cc48df78f39444')
-
-prepare() {
-  cd abuse-$pkgver
-  gendesk -f -n --pkgname=$pkgname --pkgdesc="$pkgdesc"
-  # Fix crash when initializing audio
-  sed -i 's/AUDIO_S16SYS, 2, 128/MIX_DEFAULT_FORMAT, 2, 1024/g' src/sdlport/sound.cpp
-}
-
-build() {
-  cd abuse-$pkgver
-  ./configure \
-    --prefix=/usr \
-    --with-assetdir="/usr/share/$pkgname/orig" \
-    --with-x \
-    --enable-debug # Fix for FS#52915
-  make
-}
-
-package() {
-  cd abuse-$pkgver
-
-  make DESTDIR="$pkgdir" install
-
-  # Desktop shortcut and icon
-  install -Dm644 $pkgname.desktop \
-    "$pkgdir/usr/share/applications/$pkgname.desktop"
-  install -Dm644 doc/$pkgname.png \
-    "$pkgdir/usr/share/pixmaps/$pkgname.png"
-
-  # Default configuration
-  mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/$pkgname.elf"
-  install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
-  install -Dm644 "$srcdir/default.${pkgname}rc" \
-    "$pkgdir/usr/share/$pkgname/default.${pkgname}rc"
-  install -Dm644 "$srcdir/default.gamma.lsp" \
-    "$pkgdir/usr/share/$pkgname/default.gamma.lsp"
-
-  # License (for the original source code)
-  install -d "$pkgdir/usr/share/licenses/abuse"
-  sed -n '1,/^$/p' src/view.cpp > "$pkgdir/usr/share/licenses/abuse/original"
-}

Copied: abuse/repos/community-x86_64/PKGBUILD (from rev 1010336, abuse/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-09-01 18:31:05 UTC (rev 1010337)
@@ -0,0 +1,40 @@
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: jlvsimoes <jlvsimoes at oninet.pt>
+# Contributor: kevin <kevin at archlinux.org>
+
+pkgname=abuse
+pkgver=0.9.0
+pkgrel=1
+pkgdesc='Side-scroller action game that pits you against ruthless alien killers'
+arch=(x86_64)
+url='http://abuse.zoy.org/'
+license=(custom GPL)
+depends=(libglvnd sdl2_mixer)
+makedepends=(cmake gendesk)
+source=(https://github.com/Xenoveritas/abuse/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+b2sums=('3896f5b986120e0d0385daf194e7ac158a77bea07aa5b508b9beb8ee8f9423b375a0daebd8e66124719b80a57cabb101d0258176d16d63cab030c8332ca2dfcc')
+
+prepare() {
+  gendesk -f -n --pkgname=$pkgname --pkgdesc="$pkgdesc"
+}
+
+build() {
+  cmake -B build -S $pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+
+  # Desktop shortcut and icon
+  install -Dm644 $pkgname.desktop \
+    "$pkgdir/usr/share/applications/$pkgname.desktop"
+  install -Dm644 $pkgname-$pkgver/doc/$pkgname.png \
+    "$pkgdir/usr/share/pixmaps/$pkgname.png"
+
+  # License (for the original source code)
+  install -d "$pkgdir/usr/share/licenses/abuse"
+  sed -n '1,/^$/p' $pkgname-$pkgver/src/view.cpp > "$pkgdir/usr/share/licenses/abuse/original"
+}

Deleted: abuse.sh
===================================================================
--- abuse.sh	2021-09-01 18:30:54 UTC (rev 1010336)
+++ abuse.sh	2021-09-01 18:31:05 UTC (rev 1010337)
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-# Copy over sane configuration files, unless they already exists
-if [ ! -d $HOME/.abuse ]; then
-  mkdir -p $HOME/.abuse
-fi
-if [ ! -f $HOME/.abuse/abuserc ]; then
-  cp /usr/share/abuse/default.abuserc $HOME/.abuse/abuserc
-fi
-if [ ! -f $HOME/.abuse/gamma.lsp ]; then
-  cp /usr/share/abuse/default.gamma.lsp $HOME/.abuse/gamma.lsp
-fi
-
-# Run abuse
-exec /usr/bin/abuse.elf "$@"

Deleted: default.abuserc
===================================================================
--- default.abuserc	2021-09-01 18:30:54 UTC (rev 1010336)
+++ default.abuserc	2021-09-01 18:31:05 UTC (rev 1010337)
@@ -1,37 +0,0 @@
-; Abuse-SDL Configuration file
-
-; Startup fullscreen
-fullscreen=0
-
-; Use DoubleBuffering
-doublebuf=1
-
-; Use OpenGL
-gl=1
-
-; Location of the datafiles
-datadir=/usr/share/abuse/orig
-
-; Use mono audio only
-mono=0
-
-; Grab the mouse to the window
-grabmouse=0
-
-; Set the scale factor
-scale=2
-
-; Use anti-aliasing (with gl=1 only)
-antialias=0
-
-; Disable the SDL parachute in the case of a crash
-nosdlparachute=0
-
-; Key mappings
-left=a
-right=d
-up=w
-down=s
-fire=Space
-weapprev=q
-weapnext=e

Deleted: default.gamma.lsp
===================================================================
--- default.gamma.lsp	2021-09-01 18:30:54 UTC (rev 1010336)
+++ default.gamma.lsp	2021-09-01 18:31:05 UTC (rev 1010337)
@@ -1 +0,0 @@
-(setq darkest_gray 20)



More information about the arch-commits mailing list