summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucki2018-01-14 15:58:48 +0100
committerLucki2018-01-14 15:58:48 +0100
commit7d5758240889d5c486aa988885ad18388318296d (patch)
tree538b958490ff3cac844439767773d506bb0e115b
parent5251b7595737cd112d0314b706cf6cc78059fafe (diff)
downloadaur-7d5758240889d5c486aa988885ad18388318296d.tar.gz
Better PKGBUILD…
- statisfy namcap by moving some dependencies to makedepends() - add a .desktop file - use MisterX as icon - remove reference to `${startdir}`
-rw-r--r--.CHANGELOG96
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD37
-rw-r--r--londonlaw.desktop10
4 files changed, 75 insertions, 82 deletions
diff --git a/.CHANGELOG b/.CHANGELOG
index cf0ff5883b3..9441ccd5242 100644
--- a/.CHANGELOG
+++ b/.CHANGELOG
@@ -1,59 +1,37 @@
-* commit 35d419f50a97e54e632734c7a0efd58a2fc12678
-| Author: anyc <dev@kicherer.org>
-| Date: Thu Mar 19 21:08:29 2015 +0100
-|
-| include screenshot in the readme
-|
-* commit d67300498af155e5dd9dc63d89963a07f5f90847
-| Author: anyc <dev@kicherer.org>
-| Date: Wed Mar 18 21:43:44 2015 +0100
-|
-| release 0.3.0pre2
-|
-* commit 8dee38d29f7388c7f10efd7d745a7ace4976c5de
-| Author: anyc <dev@kicherer.org>
-| Date: Wed Mar 18 21:19:43 2015 +0100
-|
-| fix AI shutdown
-|
-* commit e54ad599c01161bff63950618a006a9c117820d4
-| Author: anyc <dev@kicherer.org>
-| Date: Wed Mar 18 20:18:47 2015 +0100
-|
-| use a customizable directory for game and user database
-|
-* commit c625e668b0da81c9b50b571287bb08ed7ea5c96f
-| Author: anyc <dev@kicherer.org>
-| Date: Sun Feb 15 19:49:23 2015 +0100
-|
-| remove old changelog, rename README
-|
-* commit c01cad9c0063abf3dad2acd814b5ccc8808780b4
-| Author: anyc <dev@kicherer.org>
-| Date: Sun Feb 15 19:38:21 2015 +0100
-|
-| README update
-|
-* commit 25aadf75d2997daacd118e20db7cb1de86decd29
-| Author: anyc <dev@kicherer.org>
-| Date: Sun Feb 15 17:19:49 2015 +0100
-|
-| remove custom StaticBitmap, fixes image display
-|
-* commit 0730dae71247eb0607c0477564580fc0c0eb38a0
-| Author: anyc <dev@kicherer.org>
-| Date: Sun Feb 15 10:06:07 2015 +0100
-|
-| Fix application startup and shutdown with wxreactor
-|
-* commit a292e71b17c1d883b6dd8e5343ad2e3fdcdc71da
-| Author: anyc <dev@kicherer.org>
-| Date: Fri Feb 13 20:25:19 2015 +0100
-|
-| remove tags from old VCS
-|
-* commit 7ac8cc5dab7ab91a172357c23c5fdb304f02f59e
-| Author: anyc <dev@kicherer.org>
-| Date: Sat Feb 14 16:20:47 2015 +0100
-|
-| accept custom data directory
+London Law ChangeLog
+--------------------------------------------------------------------------------
+
+0.2
+
+ 2005-02-15 Announce 0.2.0rc1.
+
+ Tooltip username labels for the map window are now more
+ visible on OS X.
+
+ Most wxStaticTextBox instances have been replaced with
+ simple labels.
+
+ 2005-02-14 Server will permit clients to disconnect during gameplay
+ and then rejoin the game. Server saves game data to a
+ database, so it can be shut down and restarted without
+ loss of game state.
+
+ Clients receive pop-up notification when a player leaves,
+ rejoins, etc.
+
+ Clients can send chat messages "to all" or "to team".
+
+ 2005-02-12 Completed rewrite of all networking code, using the
+ event-driven Twisted framework. Protocol is now line-based.
+ Server supports multiple simultaneous games. Thanks to
+ Conor Davis <conor at fastmail dot fm> for significant
+ contributions to server code.
+
+ Client game registration windows now use the more
+ suitable wxListCtrl.
+
+
+0.1
+
+ 2004-11-13 Release 0.1.0.
+
diff --git a/.SRCINFO b/.SRCINFO
index 172bd362af5..8407303f514 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,23 @@
-# Generated by mksrcinfo v8
-# Tue Sep 5 14:25:48 UTC 2017
pkgbase = londonlaw-git
pkgdesc = Clone of the famous Scotland Yard board game with network support.
pkgver = 0.3.0_pre2.r1.g35d419f
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/anyc/londonlaw
changelog = .CHANGELOG
arch = any
license = GPL2
+ makedepends = git
+ makedepends = python2-twisted
+ makedepends = wxpython
+ makedepends = python2-zope-interface
depends = python2
- depends = python2-twisted
- depends = wxpython
- depends = python2-zope-interface
+ depends = hicolor-icon-theme
provides = londonlaw
conflicts = londonlaw
source = londonlaw::git+https://github.com/anyc/londonlaw.git
+ source = londonlaw.desktop
sha512sums = SKIP
+ sha512sums = 15f537cdca41dd72a37574151fba5df9cf70b02f849e72c3ffab65453ab69562209c7053454e9c065bbb657cf6c4fd982ef27edb124a6be91c690dfdfec8e9da
pkgname = londonlaw-git
diff --git a/PKGBUILD b/PKGBUILD
index 9a3628006d8..4f933225d51 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,38 +1,41 @@
-# Maintainer: Lucki <Lucki holarse-linuxgaming de
+# Maintainer: Lucki <https://aur.archlinux.org/account/Lucki>
# Contributor: Nikos Kouremenos <nkourAATTfreemail.gr>
pkgname=londonlaw-git
+_pkgname=${pkgname%-git}
pkgver=0.3.0_pre2.r1.g35d419f
-pkgrel=2
+pkgrel=3
pkgdesc="Clone of the famous Scotland Yard board game with network support."
arch=('any')
url="https://github.com/anyc/londonlaw"
license=('GPL2')
changelog=.CHANGELOG
-depends=('python2' 'python2-twisted' 'wxpython' 'python2-zope-interface')
-provides=("${pkgname%-git}")
-conflicts=("${pkgname%-git}")
-source=(${pkgname%-git}::git+https://github.com/anyc/londonlaw.git)
-sha512sums=('SKIP')
+depends=('python2' 'hicolor-icon-theme')
+makedepends=('git' 'python2-twisted' 'wxpython' 'python2-zope-interface')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+https://github.com/anyc/londonlaw.git"
+ "${_pkgname}.desktop")
+sha512sums=('SKIP'
+ '15f537cdca41dd72a37574151fba5df9cf70b02f849e72c3ffab65453ab69562209c7053454e9c065bbb657cf6c4fd982ef27edb124a6be91c690dfdfec8e9da')
pkgver()
{
- cd "${srcdir}/${pkgname%-git}"
+ cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
-prepare()
-{
- # update .CHANGELOG
- git -C "${srcdir}/${pkgname%-git}" log --graph -10 > "${startdir}/.CHANGELOG"
-}
-
package()
{
- cd "${srcdir}/${pkgname%-git}"
+ cd "${srcdir}"
+ install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+
+ cd "${_pkgname}"
python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
# https://lists.archlinux.org/pipermail/aur-general/2011-November/016777.html
- mkdir -p "${pkgdir}/usr/share/doc/${pkgname%-git}"
- cp -dpr --no-preserve=ownership "doc/." "${pkgdir}/usr/share/doc/${pkgname%-git}"
+ mkdir -p "${pkgdir}/usr/share/doc/${_pkgname}"
+ cp -dpr --no-preserve=ownership "doc/." "${pkgdir}/usr/share/doc/${_pkgname}"
+
+ install -Dm644 "${_pkgname}/guiclient/images/playericon0.jpg" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${_pkgname}.jpg"
}
diff --git a/londonlaw.desktop b/londonlaw.desktop
new file mode 100644
index 00000000000..1c8acccac04
--- /dev/null
+++ b/londonlaw.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Name=London Law
+Comment=Clone of the famous Scotland Yard board game with network support.
+Exec=london-client
+Icon=londonlaw
+Terminal=false
+StartupNotify=false
+Categories=Game;BoardGame;