[arch-commits] Commit in blobwars/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 12:23:17 UTC 2020


    Date: Tuesday, July 7, 2020 @ 12:23:17
  Author: felixonmars
Revision: 658126

archrelease: copy trunk to community-staging-x86_64

Added:
  blobwars/repos/community-staging-x86_64/
  blobwars/repos/community-staging-x86_64/PKGBUILD
    (from rev 658125, blobwars/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: blobwars/repos/community-staging-x86_64/PKGBUILD (from rev 658125, blobwars/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 12:23:17 UTC (rev 658126)
@@ -0,0 +1,44 @@
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: geekitus
+
+pkgname=blobwars
+pkgver=2.00
+pkgrel=4
+pkgdesc="Platform action game featuring a blob wih lot of weapons"
+arch=('x86_64')
+url="https://sourceforge.net/projects/blobwars"
+license=('GPL')
+makedepends=('sdl2_image' 'sdl2_mixer' 'sdl2_ttf' 'sdl2_net')
+source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz)
+sha256sums=('c406279f6cdf2aed3c6edb8d8be16efeda0217494acd525f39ee2bd3e77e4a99')
+
+prepare() {
+  cd blobwars-${pkgver}
+
+  # use install instead of mkdir/cp
+  sed -i -e 's/mkdir -p/install -dm755/g' \
+    -e 's/cp -pr/cp -r/g' \
+    -e 's/cp -p /install -m644 /g' Makefile
+  # Don't use -Werror
+  sed -e 's|-Werror||' -i Makefile
+}
+
+build() {
+  cd blobwars-${pkgver}
+
+  make RELEASE=1
+}
+
+package() {
+  depends=('hicolor-icon-theme' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf' 'sdl2_net' 'blobwars-data>=2.0')
+
+  cd blobwars-${pkgver}
+
+  make DESTDIR="${pkgdir}" BINDIR="/usr/bin/" install
+
+  # We remove data files (See blobwars-data)
+  rm -r "${pkgdir}/usr/share/games"
+}
+


More information about the arch-commits mailing list