summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Blakeney2019-03-27 17:45:52 +1000
committerMark Blakeney2019-03-27 17:54:59 +1000
commit2132ee7903ef9fe65f1c7c32bf8c9d1b153dcc87 (patch)
treeecc5dc59b2f380ebb5962e69ed08888b03cbb866
parent31c1a1dfd6c01f20ac1b1ccc377900700d9d030f (diff)
downloadaur-2132ee7903ef9fe65f1c7c32bf8c9d1b153dcc87.tar.gz
Make snack and tdom packages optional
snack is needed for sound support but it is very buggy anyhow so may as well leave it out. tdom is needed for Xfcc protocol support which is used by some correspondence chess servers.
-rw-r--r--.SRCINFO6
-rwxr-xr-xPKGBUILD17
2 files changed, 12 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b9f5f553dfc..3c2f1fa7cbf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,15 @@
pkgbase = scid_vs_pc
pkgdesc = Shane's Chess Information Database
pkgver = 4.19
- pkgrel = 2
+ pkgrel = 3
url = http://scidvspc.sourceforge.net/
install = scid_vs_pc.install
arch = i686
arch = x86_64
license = GPL2
- depends = snack
- depends = tdom
depends = zlib
+ optdepends = snack
+ optdepends = tdom
conflicts = scid
source = scid_vs_pc-4.19.tgz::http://sourceforge.net/projects/scidvspc/files/source/scid_vs_pc-4.19.tgz/download
source = scid
diff --git a/PKGBUILD b/PKGBUILD
index 2411b936cd0..76497646d01 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,12 +3,13 @@
pkgname=scid_vs_pc
pkgver=4.19
-pkgrel=2
+pkgrel=3
pkgdesc="Shane's Chess Information Database"
arch=('i686' 'x86_64')
url="http://scidvspc.sourceforge.net/"
license=('GPL2')
-depends=('snack' 'tdom' 'zlib')
+depends=('zlib')
+optdepends=('snack' 'tdom')
install=$pkgname.install
conflicts=('scid')
source=("scid_vs_pc-"$pkgver".tgz::http://sourceforge.net/projects/scidvspc/files/source/scid_vs_pc-"$pkgver".tgz/download"
@@ -38,13 +39,13 @@ build() {
package() {
cd $srcdir/$pkgname-$pkgver
-
+
# Create directories
install -dm755 $pkgdir/usr/bin
install -dm755 $pkgdir/usr/share/scid/{bases,bin,bitmaps,books,data,html,lang,sounds}
install -dm755 $pkgdir/usr/share/scid/bin/scripts
install -dm755 $pkgdir/usr/share/fonts/truetype/Scid
-
+
# Data
install -m 755 scid sc_* scidpgn pgnscid tkscid tcscid scmerge scidlet* scidt $pkgdir/usr/share/scid/bin
rm -r scripts/CB-Mega
@@ -64,13 +65,13 @@ package() {
# Sounds
cp sounds/* $pkgdir/usr/share/scid/sounds
-
+
# Bases
install -m 666 bases/* $pkgdir/usr/share/scid/bases
# Bitmaps
cp bitmaps/* $pkgdir/usr/share/scid/bitmaps
-
+
# Docs
cp -r html/* $pkgdir/usr/share/scid/html
@@ -79,12 +80,12 @@ package() {
cp phalanx/phalanx $pkgdir/usr/bin
cp toga/src/fruit $pkgdir/usr/bin
install -Dm666 phalanx/eco.phalanx $pkgdir/usr/share/scid/engines/phalanx/eco.phalanx
- install -m 644 phalanx/pbook.phalanx $pkgdir/usr/share/scid/engines/phalanx
+ install -m 644 phalanx/pbook.phalanx $pkgdir/usr/share/scid/engines/phalanx
# Fonts
cd ..
cp fonts/{ScidChessStandard,ScidChessTraveller}.ttf $pkgdir/usr/share/fonts/truetype/Scid
-
+
# Desktop icon
install -Dm644 icons/scid.png $pkgdir/usr/share/pixmaps/scid.png
install -Dm644 $srcdir/scid_vs_pc.desktop $pkgdir/usr/share/applications/scid_vs_pc.desktop