mirror of
https://github.com/archlinux/aur.git
synced 2026-02-28 10:53:23 +01:00
Cleanup
This commit is contained in:
parent
628c71bd47
commit
ad5d32bcd8
3 changed files with 41 additions and 61 deletions
17
.SRCINFO
17
.SRCINFO
|
|
@ -1,9 +1,8 @@
|
|||
pkgbase = smw-svn
|
||||
pkgdesc = Super Mario War multiplayer game (development version)
|
||||
pkgver = 6
|
||||
pkgrel = 3
|
||||
pkgver = 1.8.r6
|
||||
pkgrel = 1
|
||||
url = http://smw.supersanctuary.net/
|
||||
install = smw-svn.install
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = GPL2
|
||||
|
|
@ -11,24 +10,18 @@ pkgbase = smw-svn
|
|||
makedepends = subversion
|
||||
depends = sdl_mixer
|
||||
depends = sdl_image
|
||||
depends = desktop-file-utils
|
||||
provides = smw
|
||||
conflicts = smw
|
||||
source = smw::svn+http://supermariowar.googlecode.com/svn/trunk/
|
||||
source = smw::svn+http://supermariowar.googlecode.com/svn/trunk
|
||||
source = smw.desktop
|
||||
source = smw.png
|
||||
source = gcc.patch
|
||||
source = libpng.patch
|
||||
md5sums = SKIP
|
||||
md5sums = 609f98c3bb5ef4961ae5eb12ea36d569
|
||||
md5sums = b7f5ef181e41eb0339be746ea03ff628
|
||||
md5sums = 586cf917af0a81912d8c5c0fcfddb64b
|
||||
md5sums = ee4c6fd9e7f6f9a4dd699cdcd028b72f
|
||||
source = smw.png
|
||||
sha256sums = SKIP
|
||||
sha256sums = c01da67abdc1c7bd46fd2c0420ca2795d77d143df1da7ce0ad95260816d2b80d
|
||||
sha256sums = 28299d22e9ed8ebdecc8d936bfebef4a13381d20afda881c87661debe33f17d6
|
||||
sha256sums = 7509d33b70b11742fc83cb62dd3e70a51d35596f20eb3a38b3553946261fe986
|
||||
sha256sums = be105515dbc850fcc8f73d894555ba71a7b89c52d7af2aa329a40f8088c2c75d
|
||||
sha256sums = 28299d22e9ed8ebdecc8d936bfebef4a13381d20afda881c87661debe33f17d6
|
||||
|
||||
pkgname = smw-svn
|
||||
|
||||
|
|
|
|||
72
PKGBUILD
72
PKGBUILD
|
|
@ -1,79 +1,79 @@
|
|||
# Maintainer: carstene1ns <arch carsten-teibes de>
|
||||
# Maintainer: carstene1ns <url/mail: arch carsten-teibes de>
|
||||
# Contributor: Evangelos Foutras <foutrelis gmail com>
|
||||
# Contributer: Matthew Bauer <mjbauer95 gmail com>
|
||||
|
||||
pkgname=smw-svn
|
||||
pkgver=6
|
||||
pkgrel=3
|
||||
pkgver=1.8.r6
|
||||
pkgrel=1
|
||||
pkgdesc="Super Mario War multiplayer game (development version)"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://smw.supersanctuary.net/"
|
||||
license=('GPL2')
|
||||
depends=('sdl_mixer' 'sdl_image' 'desktop-file-utils')
|
||||
depends=('sdl_mixer' 'sdl_image')
|
||||
makedepends=('dos2unix' 'subversion')
|
||||
provides=('smw')
|
||||
conflicts=('smw')
|
||||
install="${pkgname}.install"
|
||||
source=("smw::svn+http://supermariowar.googlecode.com/svn/trunk/"
|
||||
source=(smw::"svn+http://supermariowar.googlecode.com/svn/trunk"
|
||||
"smw.desktop"
|
||||
"smw.png"
|
||||
"gcc.patch"
|
||||
"libpng.patch")
|
||||
md5sums=('SKIP'
|
||||
'609f98c3bb5ef4961ae5eb12ea36d569'
|
||||
'b7f5ef181e41eb0339be746ea03ff628'
|
||||
'586cf917af0a81912d8c5c0fcfddb64b'
|
||||
'ee4c6fd9e7f6f9a4dd699cdcd028b72f')
|
||||
"libpng.patch"
|
||||
"smw.png")
|
||||
sha256sums=('SKIP'
|
||||
'c01da67abdc1c7bd46fd2c0420ca2795d77d143df1da7ce0ad95260816d2b80d'
|
||||
'28299d22e9ed8ebdecc8d936bfebef4a13381d20afda881c87661debe33f17d6'
|
||||
'7509d33b70b11742fc83cb62dd3e70a51d35596f20eb3a38b3553946261fe986'
|
||||
'be105515dbc850fcc8f73d894555ba71a7b89c52d7af2aa329a40f8088c2c75d')
|
||||
'be105515dbc850fcc8f73d894555ba71a7b89c52d7af2aa329a40f8088c2c75d'
|
||||
'28299d22e9ed8ebdecc8d936bfebef4a13381d20afda881c87661debe33f17d6')
|
||||
pkgver() {
|
||||
cd smw
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/smw"
|
||||
local ver="$(svnversion)"
|
||||
printf "1.8.r%s" "${ver//[[:alpha:]]}"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd smw
|
||||
|
||||
# Fix line breaks and permission
|
||||
dos2unix configure
|
||||
chmod +x configure
|
||||
|
||||
# Change data directory
|
||||
sed -i "s|usr/share/games/smw|usr/share/smw|" configure
|
||||
|
||||
# Fixes for gcc warnings and libpng >1.5
|
||||
patch --forward -p0 -i ../gcc.patch
|
||||
patch --forward -p0 -i ../libpng.patch
|
||||
patch -Np0 < ../gcc.patch
|
||||
patch -Np0 < ../libpng.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd smw
|
||||
|
||||
./configure
|
||||
|
||||
# Change data directory
|
||||
sed -i "s|usr/share/games/smw|usr/share/smw|" configuration
|
||||
|
||||
# Build
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/smw"
|
||||
|
||||
cd smw
|
||||
# Not using "make install" because of different data directory
|
||||
|
||||
# Install binaries
|
||||
msg2 "Installing binaries"
|
||||
mkdir -p "${pkgdir}/usr/bin"
|
||||
install -D smw "${pkgdir}/usr/bin"
|
||||
install -D leveledit "${pkgdir}/usr/bin/smw-leveledit"
|
||||
install -D worldedit "${pkgdir}/usr/bin/smw-worldedit"
|
||||
install -Dm755 smw "$pkgdir"/usr/bin/smw
|
||||
install -Dm755 leveledit "$pkgdir"/usr/bin/smw-leveledit
|
||||
install -Dm755 worldedit "$pkgdir"/usr/bin/smw-worldedit
|
||||
|
||||
# Install data folders
|
||||
msg2 "Installing data folders"
|
||||
mkdir -p "${pkgdir}/usr/share/smw/"
|
||||
install -d "$pkgdir"/usr/share/smw/
|
||||
for _datadir in gfx maps music sfx tours worlds; do
|
||||
cp -r ${_datadir} "${pkgdir}/usr/share/smw/"
|
||||
cp -r $_datadir "$pkgdir"/usr/share/smw/
|
||||
done
|
||||
|
||||
# Set sane permissions
|
||||
find "${pkgdir}/usr/share/smw" -type d -exec chmod 755 {} \;
|
||||
find "${pkgdir}/usr/share/smw" -type f -exec chmod 644 {} \;
|
||||
find "$pkgdir"/usr/share/smw -type d -exec chmod 755 {} \;
|
||||
find "$pkgdir"/usr/share/smw -type f -exec chmod 644 {} \;
|
||||
|
||||
# Install application shortcut and icon
|
||||
install -D -m644 "${srcdir}/smw.desktop" "${pkgdir}/usr/share/applications/smw.desktop"
|
||||
install -D -m644 "${srcdir}/smw.png" "${pkgdir}/usr/share/pixmaps/smw.png"
|
||||
install -Dm644 ../smw.desktop "$pkgdir"/usr/share/applications/smw.desktop
|
||||
install -Dm644 ../smw.png "$pkgdir"/usr/share/pixmaps/smw.png
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
|
||||
# Update for our .desktop file
|
||||
post_install() {
|
||||
update-desktop-database -q
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install $1
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue