summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorstartnoob2022-12-28 11:54:05 +0800
committerstartnoob2022-12-28 11:54:05 +0800
commita3fb2ff6b5c872a85887b2688bc7e01067b85895 (patch)
treebbc3b226366dea0ca1499328788143187c92f7a9
parentba104a21616cafa3c511e4a86e06c1e8a9106292 (diff)
downloadaur-a3fb2ff6b5c872a85887b2688bc7e01067b85895.tar.gz
Switch to mvn build version
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD40
-rw-r--r--sound.zipbin0 -> 72270 bytes
3 files changed, 34 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e68e8ec96a98..ab6a3025a1e5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
-pkgbase = lizzie-improve
+pkgbase = lizzie-improve-git
pkgdesc = Analysis interface for KataGo/Leela Zero, more features added by yzy
- pkgver = 20220803
- pkgrel = 2
+ pkgver = r12.ba104a2
+ pkgrel = 1
url = https://github.com/yzyray/lizzieyzy
arch = x86_64
license = GPLv3
@@ -11,13 +11,16 @@ pkgbase = lizzie-improve
depends = unzip
provides = lizzie
conflicts = lizzie
- source = https://github.com/yzyray/lizzieyzy/releases/download/2.5.1/2022-08-03-other-systems.without.engine.zip
+ conflicts = lizzie-improve
+ source = https://github.com/yzyray/lizzieyzy/archive/refs/heads/main.zip
source = lizzie.sh
source = lizzie.desktop
source = config.txt
- sha256sums = 3cda6af3a425022c9055647aa583d9ab8eb1b181a01e741b121fa432f672d8e9
+ source = sound.zip
+ sha256sums = SKIP
sha256sums = 7c003e045833fa24962e3165c8f3a7fb9cb0e24443023a629c2a477f58b3c2d0
sha256sums = cf5d1651023f04294e580243aa7ef05bc9ebedb468631f4035fd3d5ce0f212f0
sha256sums = 2d42917fd7a3b905696bcfcb7b0be96260cf88207db0cb4983e3082447fa7336
+ sha256sums = SKIP
-pkgname = lizzie-improve
+pkgname = lizzie-improve-git
diff --git a/PKGBUILD b/PKGBUILD
index 15bc812d1c7c..ced798cd1ba6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
# Maintainer: Ralph Zhou <ralph-zhou@qq.com>
-pkgname=lizzie-improve
+pkgname=lizzie-improve-git
+_gitname=lizzieyzy-main
_pkgname=lizzie
-pkgver=20220803
-_pkgver=2.5.1
-pkgrel=2
+pkgver=r12.ba104a2
+pkgrel=1
pkgdesc="Analysis interface for KataGo/Leela Zero, more features added by yzy"
arch=('x86_64')
url="https://github.com/yzyray/lizzieyzy"
@@ -12,27 +12,37 @@ license=('GPLv3')
depends=('bash' 'java-runtime' 'unzip')
makedepends=('git')
provides=('lizzie')
-conflicts=('lizzie')
-_filename=2022-08-03-other-systems
-_zipname=2022-08-03-other-systems.without.engine
-source=("https://github.com/yzyray/lizzieyzy/releases/download/2.5.1/$_zipname.zip"
+conflicts=('lizzie' 'lizzie-improve')
+source=("https://github.com/yzyray/lizzieyzy/archive/refs/heads/main.zip"
"lizzie.sh"
"lizzie.desktop"
- "config.txt")
-sha256sums=('3cda6af3a425022c9055647aa583d9ab8eb1b181a01e741b121fa432f672d8e9'
- '7c003e045833fa24962e3165c8f3a7fb9cb0e24443023a629c2a477f58b3c2d0'
+ "config.txt"
+ "sound.zip")
+sha256sums=('SKIP'
+ '7c003e045833fa24962e3165c8f3a7fb9cb0e24443023a629c2a477f58b3c2d0'
'cf5d1651023f04294e580243aa7ef05bc9ebedb468631f4035fd3d5ce0f212f0'
- '2d42917fd7a3b905696bcfcb7b0be96260cf88207db0cb4983e3082447fa7336')
+ '2d42917fd7a3b905696bcfcb7b0be96260cf88207db0cb4983e3082447fa7336'
+ 'SKIP')
+pkgver() {
+ cd ${_gitname}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
prepare(){
- unzip -o "$_zipname.zip"
+ unzip -o main.zip
+ unzip -o sound.zip
+}
+build(){
+ cd $_gitname
+ mvn package
}
package() {
- install -Dm644 "$_filename"/Lizzieyzy/lizzie-yzy"$_pkgver"-shaded.jar "$pkgdir"/usr/share/java/"$_pkgname"/"$_pkgname".jar
+ filename=$(ls "$_gitname"/target | grep shaded)
+ install -Dm644 "$_gitname"/target/"$filename" "$pkgdir"/usr/share/java/"$_pkgname"/"$_pkgname".jar
install -Dm644 config.txt "$pkgdir"/usr/share/"$_pkgname"/config.txt
install -Dm755 "$_pkgname".sh "$pkgdir"/usr/bin/"$_pkgname"
install -Dm644 "$_pkgname".desktop "$pkgdir"/usr/share/applications/"$_pkgname".desktop
- for _file in $_filename/Lizzieyzy/sound/*.wav
+ for _file in sound/*.wav
do
install -Dm644 "${_file}" "$pkgdir"/usr/share/"$_pkgname"/sound/"$(basename ${_file})"
done
diff --git a/sound.zip b/sound.zip
new file mode 100644
index 000000000000..c21263f6cdff
--- /dev/null
+++ b/sound.zip
Binary files differ