[arch-commits] Commit in bsd-games/trunk (PKGBUILD)
Laurent Carlier
lcarlier at archlinux.org
Thu Jul 9 13:03:21 UTC 2020
Date: Thursday, July 9, 2020 @ 13:03:21
Author: lcarlier
Revision: 661814
upgpkg: bsd-games 3.0-2: remove conflict with fish
Modified:
bsd-games/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-09 12:39:28 UTC (rev 661813)
+++ PKGBUILD 2020-07-09 13:03:21 UTC (rev 661814)
@@ -6,7 +6,7 @@
pkgname=bsd-games
pkgver=3.0
-pkgrel=1
+pkgrel=2
pkgdesc='Linux port of the collection of BSD command line games'
url='https://github.com/msharov/bsd-games'
arch=('x86_64')
@@ -17,6 +17,13 @@
source=("https://github.com/msharov/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('12401a025aaf2a035d55b5cd3401f677e0f5dab6b75673148c6e1a3f01bf92a9')
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ # Remove conflict with fish
+ sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6
+}
+
build() {
cd "$pkgname-$pkgver"
@@ -32,5 +39,9 @@
chown -R root:games "${pkgdir}/var/lib/bsdgames"
chmod 664 "${pkgdir}"/var/lib/bsdgames/*
+ # Remove conflict with fish
+ mv "${pkgdir}/usr/bin/fish" "${pkgdir}/usr/bin/go-fish"
+ mv "${pkgdir}/usr/share/man/man6/fish.6.gz" "${pkgdir}/usr/share/man/man6/go-fish.6.gz"
+
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list