From 7a3946885d1b34e99e84722de87939619992bd39 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 30 Apr 2023 16:29:19 +0200 Subject: [PATCH] Update archlinux package --- tools/packages/archlinux/PKGBUILD | 53 +++++++++++++++++-------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/tools/packages/archlinux/PKGBUILD b/tools/packages/archlinux/PKGBUILD index 3ddb5c3..d576656 100644 --- a/tools/packages/archlinux/PKGBUILD +++ b/tools/packages/archlinux/PKGBUILD @@ -1,32 +1,37 @@ -# Maintainer: Loic Guegan +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. +# Maintainer: Loic Guegan pkgname=ochess -pkgver=0.1 -pkgrel=0.1 -pkgdesc='Open source chess database/games management.' -arch=(x86_64) -url='https://gitlab.com/manzerbredes/ochess' -license=(GPL) -depends=() -makedepends=(wxgtk3-dev gcc) -source=("ochess-master.tar.bz2") -sha256sums=('b9ca8efd769945b5cc55370a863d2f8f4bca82699c5f775c844a7b95a2829187') -options=(!buildflags) +pkgver=v0.0.1 +pkgrel=1 +epoch= +pkgdesc="Chess game analysis software written in c++" +arch=("any") +url="https://gitlab.com/manzerbredes/ochess" +license=('GPLv3') +groups=() +depends=(wxwidgets-gtk3) +makedepends=(cmake wxwidgets-common) +source=("http://loicguegan.com/files/ochess-v0.0.1.tar.gz") +sha256sums=(91948602423da0042f26777a8573f16fa02124843b2fcb10e238c70ef6d32288) #generate with 'makepkg -g' + +prepare() { + cd "$srcdir/$pkgname-$pkgver" +} build() { - cd ochess-master - mkdir -p build - cd build - cmake ../ - make + cd "$srcdir/$pkgname-$pkgver" + mkdir -p build + cd build + cmake ../ + make -j4 } package() { - - mkdir -p $pkgdir/usr/bin/ - mkdir -p $pkgdir/usr/share/ochess/ - - cd ochess-master/build/ - cp ochess $pkgdir/usr/bin/ - cp -r assets $pkgdir/usr/share/ochess/ + cd "$srcdir/$pkgname-$pkgver" + cd build + install -Dm775 ochess "${pkgdir}/usr/bin/ochess" }