mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Update to 2.10, announce message:
Added desktop file. - Change PLIST_FILES, changed by me and Upstream - Simplify installation handling, changed by me and Upstream - Add REINPLACE, fix GNU/Linux paths - Strip executable - Remove Desktop entry file, use supplied desktop files
This commit is contained in:
parent
91bd9cdb68
commit
e7af6a98e0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374730
@ -2,8 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= bs
|
||||
PORTVERSION= 2.9
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.10
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://www.catb.org/~esr/bs/
|
||||
|
||||
@ -18,18 +17,21 @@ ALL_TARGET= # empty
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME} \
|
||||
man/man6/${PORTNAME}.6.gz \
|
||||
share/appdata/${PORTNAME}.xml \
|
||||
${DESKTOPDIR}/${PORTNAME}.desktop \
|
||||
share/pixmaps/battleship.png
|
||||
share/icons/hicolor/32x32/apps/battleship.png
|
||||
|
||||
PORTDOCS= NEWS README
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
||||
${INSTALL_DATA} ${WRKSRC}/battleship.png ${STAGEDIR}${PREFIX}/share/pixmaps/
|
||||
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin/|; \
|
||||
s|/usr/share/|${PREFIX}/share/|; \
|
||||
s|/usr/local/share/man|${PREFIX}/man/|' \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (bs-2.9.tar.gz) = 32408dfafd7ac09307a2398156c13c5f305075d81d8a82d8aa3f22111ca5db01
|
||||
SIZE (bs-2.9.tar.gz) = 14922
|
||||
SHA256 (bs-2.10.tar.gz) = 1f8c1541fd13f481ff96df26d668658a7465da064801ae22ee584bd50f3a3107
|
||||
SIZE (bs-2.10.tar.gz) = 15426
|
||||
|
@ -1,10 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=Battleships
|
||||
GenericName=BattleShip game
|
||||
Comment=Battleships solitaire game with a color interface
|
||||
Icon=battleship
|
||||
Exec=bs
|
||||
Categories=Game;ArcadeGame;
|
||||
Terminal=true
|
Loading…
Reference in New Issue
Block a user