mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
33 lines
935 B
Bash
33 lines
935 B
Bash
pkgname=freecell-solver
|
|
pkgver=4.20.0
|
|
pkgrel=1
|
|
pkgdesc="A program that automatically solves layouts of Freecell and similar variants of Card Solitaire"
|
|
arch=(x86_64)
|
|
url="http://fc-solve.shlomifish.org"
|
|
license=(MIT)
|
|
depends=(bash)
|
|
makedepends=(cmake gperf perl-path-tiny perl-template-toolkit python3-random2 python3-six)
|
|
optdepends=('python3-random2: for the Python scripts' 'python3-six: for the Python scripts')
|
|
source=(http://fc-solve.shlomifish.org/downloads/fc-solve/$pkgname-$pkgver.tar.xz)
|
|
sha256sums=('869c210e7b63b0e0dcfb1c4a2322c41cfa8fbf8db01e7722254a7425a1ab7f81')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../$pkgname-$pkgver \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DFCS_WITH_TEST_SUITE=OFF \
|
|
-DBUILD_STATIC_LIBRARY=OFF
|
|
make -j1
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|