Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package request: Tachidesk-Server 
@ 2024-01-10 18:02 jaminW55
  2024-01-15  5:56 ` jaminW55
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: jaminW55 @ 2024-01-10 18:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 713 bytes --]

New issue by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155

Description:
### Package name

Tachidesk 

### Package homepage

https://github.com/Suwayomi/Suwayomi-Server/

### Description

```
A free and open source manga reader server that runs extensions built for Tachiyomi.

Suwayomi is an independent Tachiyomi compatible software and is not a Fork of Tachiyomi.
```

The closest equivalent is Komikku, but this contains many features Komikku does not, including more updated sources.
It also uses a different, less restrictive license.

### Does the requested package meet the package requirements?

System

### Is the requested package released?

Yes

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
@ 2024-01-15  5:56 ` jaminW55
  2024-01-15  6:03 ` classabbyamp
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jaminW55 @ 2024-01-15  5:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1891346180

Comment:
I've done some work on this template and have it down to a single error:
`=> ERROR: Tachidesk-Server-0.7.0_1: cannot find build helper /void-packages/common/build-style/gradle.sh!`

This is only my 3rd attempt at package building for Void, so I am not entirely certain the correct approach here. Could someone help verify? Below is the current template.

```
# Template file for `Tachidesk-Server`
pkgname=Tachidesk-Server
version=0.7.0
revision=1
build_style=gradle
hostmakedepends="openjdk8"
depends="openjdk8"
short_desc="A free and open source manga reader server written in Kotlin"
maintainer="Your Name <youremail@example.com>"
license="MPL-2.0"
homepage="https://github.com/Suwayomi/Tachidesk-Server"
distfiles="https://github.com/Suwayomi/Suwayomi-Server/releases/download/v0.7.0/Tachidesk-Server-v0.7.0-r1197-linux-x64.tar.gz"
checksum=cc1bc67b387d687a1bbbf4cc10e6437f66aa70c477df1eeaab5eff6cd9569c51

do_install() {
    vmkdir /usr/share/Tachidesk-Server
    vcopy build/libs/*.jar /usr/share/Tachidesk-Server
    # Create a symlink for the executable
    vln -s /usr/share/Tachidesk-Server/Tachidesk-Server.jar /usr/bin/tachidesk-server
}
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
  2024-01-15  5:56 ` jaminW55
@ 2024-01-15  6:03 ` classabbyamp
  2024-01-15  6:09 ` jaminW55
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-01-15  6:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1891351822

Comment:
there's no such thing as a gradle build style. the available build styles are in `common/build-style/`

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
  2024-01-15  5:56 ` jaminW55
  2024-01-15  6:03 ` classabbyamp
@ 2024-01-15  6:09 ` jaminW55
  2024-01-15  6:36 ` jaminW55
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jaminW55 @ 2024-01-15  6:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1891356416

Comment:
This program builds with gradle per the build instructions for the package. What are my options for resolving this issue? I do not have the understanding on how to compose a build-style. 

I do believe, from past experience on Fedora, that simply correctly placing the .jar file within the tar.gz in an area whereby it can be executed should be sufficient. for running the program as a `webui` at the bare minimum.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (2 preceding siblings ...)
  2024-01-15  6:09 ` jaminW55
@ 2024-01-15  6:36 ` jaminW55
  2024-01-15  6:39 ` classabbyamp
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jaminW55 @ 2024-01-15  6:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1891346180

Comment:
I've done some work on this template and have it down to a single error:
`=> ERROR: Tachidesk-Server-0.7.0_1: cannot find build helper /void-packages/common/build-style/gradle.sh!`

This is only my 3rd attempt at package building for Void, so I am not entirely certain the correct approach here. Could someone help verify? Below is the current template.

```
# Template file for `Tachidesk-Server`
pkgname=Tachidesk-Server
version=0.7.0
revision=1
build_style=gradle
hostmakedepends="openjdk8"
depends="openjdk8"
short_desc="A free and open source manga reader server written in Kotlin"
maintainer="jaminW55 <wellerbp@protonmail.com>"
license="MPL-2.0"
homepage="https://github.com/Suwayomi/Tachidesk-Server"
distfiles="https://github.com/Suwayomi/Suwayomi-Server/releases/download/v0.7.0/Tachidesk-Server-v0.7.0-r1197-linux-x64.tar.gz"
checksum=cc1bc67b387d687a1bbbf4cc10e6437f66aa70c477df1eeaab5eff6cd9569c51

do_install() {
    vmkdir /usr/share/Tachidesk-Server
    vcopy build/libs/*.jar /usr/share/Tachidesk-Server
    # Create a symlink for the executable
    vln -s /usr/share/Tachidesk-Server/Tachidesk-Server.jar /usr/bin/tachidesk-server
}
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (3 preceding siblings ...)
  2024-01-15  6:36 ` jaminW55
@ 2024-01-15  6:39 ` classabbyamp
  2024-01-15  6:59 ` jaminW55
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-01-15  6:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1891392995

Comment:
write out the template yourself. build style are not necessary, they are just handy shortcuts for common types of builds. grep around for other templates using gradle

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (4 preceding siblings ...)
  2024-01-15  6:39 ` classabbyamp
@ 2024-01-15  6:59 ` jaminW55
  2024-01-21  1:24 ` oreo639
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jaminW55 @ 2024-01-15  6:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1891428522

Comment:
> write out the template yourself. build style are not necessary, they are just handy shortcuts for common types of builds. grep around for other templates using gradle

I've tried building one myself, but went wrong somewhere. 
`=> ERROR: Tachidesk-Server-0.7.0_1: do_build: './gradlew build' exited with 127
=> ERROR:   in do_build() at srcpkgs/Tachidesk-Server/template:22`
I'll check for others.

```
# Template file for 'Tachidesk-Server'
pkgname=Tachidesk-Server
version=0.7.0
revision=1
build_style=fetch
hostmakedepends="openjdk8"
depends="openjdk8"
short_desc="A free and open source manga reader server written in Kotlin"
maintainer="jaminW55 <wellerbp@protonmail.com>"
license="MPL-2.0"
homepage="https://github.com/Suwayomi/Tachidesk-Server"
distfiles="https://github.com/Suwayomi/Suwayomi-Server/releases/download/v0.7.0/Tachidesk-Server-v0.7.0-r1197-linux-x64.tar.gz"
checksum=cc1bc67b387d687a1bbbf4cc10e6437f66aa70c477df1eeaab5eff6cd9569c51


do_extract() {
    tar -xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-v${version}-r1197-linux-x64.tar.gz -C ${wrksrc}
}

do_build() {
    export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
    ./gradlew build
}

do_check(){
    cd ${wrksrc}
    gradle build
}

do_install() {
    vmkdir /usr/share/Tachidesk-Server
    vcopy build/libs/*.jar /usr/share/Tachidesk-Server
    # Create a symlink for the executable
    vln -s /usr/share/Tachidesk-Server/Tachidesk-Server.jar /usr/bin/tachidesk-server
}
```


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (5 preceding siblings ...)
  2024-01-15  6:59 ` jaminW55
@ 2024-01-21  1:24 ` oreo639
  2024-01-21  1:40 ` classabbyamp
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: oreo639 @ 2024-01-21  1:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1902470285

Comment:
https://github.com/void-linux/void-packages/commit/80a7f1151e7dbb9985f1fc46b18739407923b2ea
The openjdk8 JAVA_HOME path changed, it should be `/usr/lib/jvm/openjdk8` instead of `/usr/lib/jvm/java-1.8-openjdk`

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (6 preceding siblings ...)
  2024-01-21  1:24 ` oreo639
@ 2024-01-21  1:40 ` classabbyamp
  2024-01-21  1:42 ` classabbyamp
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-01-21  1:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 210 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1902472732

Comment:
don't manually export JAVA_HOME, `source /etc/profile/jdk.sh`

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (7 preceding siblings ...)
  2024-01-21  1:40 ` classabbyamp
@ 2024-01-21  1:42 ` classabbyamp
  2024-02-02  9:25 ` meator
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2024-01-21  1:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1902472732

Comment:
don't manually export JAVA_HOME, `source /etc/profile.d/jdk.sh`

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (8 preceding siblings ...)
  2024-01-21  1:42 ` classabbyamp
@ 2024-02-02  9:25 ` meator
  2024-02-07  3:20 ` jaminW55
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: meator @ 2024-02-02  9:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3841 bytes --]

New comment by meator on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1923402533

Comment:
The void-packages repository expects the packages to be built by it. This is one of the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements) and you specified that it fulfills the Compiled requirement in this issue. GitHub releases usually contain prebuilt binaries. void-packages doesn't distribute these[^1]. Void packages usually use the `Source code (tar.gz)` asset of releases[^2].

### Recommended changes to template

5: [You don't have to specify a build style](https://github.com/void-linux/void-packages/blob/master/Manual.md#build-style-scripts). The default one already defines `do_fetch()` and `do_extract()`.
12: `distfiles` should use the `version` variable. A standard package update procedure involves changing two lines: `version` and `checksum`. When `distfiles` relies on `version`, it doesn't have to be changed in an update.
16-18: This can be removed (when the `build_style` is removed). Also xbps-src prefers bsdtar over tar. bsdtar is installed on every masterdir by default (because it is a dependency of `base-chroot` which is installed on masterdirs), tar has to be added to `hostmakedepends` manually. Also xbps-src uses bsdtar internally.
22: Your build is failing because you are using the wrong distfile described above. `gradle` is already packaged in Void, so it should be used. I don't know gradle well, but some googling showed me that the purpose of the `gradlew` script is to download `gradle` automatically. You should add `gradle` to `hostmakedepends` and use it directly[^3]. I've also seen some templates use the `--no-daemon` flag, that can be useful.
25-28: That doesn't look like it's doing any checking (but I don't have much experience with Java). If the package doesn't have any checks, don't define `do_check()`.
32,34: All package files[^4] **must** be put to `${DESTDIR}`. Your template is currently polluting the masterdir.
34: I don't think `vln` exists. Use `ln` instad.

Here is the template modified with my and classabbyamp's suggestions:

```bash
# Template file for 'Tachidesk-Server'
pkgname=Tachidesk-Server
version=0.7.0
revision=1
hostmakedepends="openjdk8 gradle"
depends="openjdk8"
short_desc="A free and open source manga reader server written in Kotlin"
maintainer="jaminW55 <wellerbp@protonmail.com>"
license="MPL-2.0"
homepage="https://github.com/Suwayomi/Tachidesk-Server"
distfiles="https://github.com/Suwayomi/Suwayomi-Server/archive/refs/tags/v${version}.tar.gz"
checksum=ba18fa09ac4b7a1703d054da1ae8ff6d55af3b3b4d88b874260725ff94011656

do_build() {
	. /etc/profile.d/jdk.sh
	gradle --no-daemon build
}

do_install() {
	# TBD
}
```

This template doesn't work, but it's closer to the desired result. I do not have experience with gradle nor Java, so I can't really help more with this.

[^1]: There are some exceptions to this rule, void-packages contain some `-bin` packages, but it is discouraged.
[^2]: This asset is generated automatically by GitHub for every release. It is a snapshot of that repository at that tag (excluding submodules). Some repositories don't have releases, but have tags. The process is very similar.
[^3]: But I've also read that version mismatch between repo's gradle and the real gradle can create problems. The repo looks like it wants `gradle-7.6`, Void packages `gradle-8.5`. In that case, using `gradlew` might be necessary. But these problems should be solved by someone more knowledgeable of gradle, I have never used it.
[^4]: Things that should actually be present in the resulting package, I don't mean the source code nor intermediate build artifacts, these belong to `wrksrc`.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (9 preceding siblings ...)
  2024-02-02  9:25 ` meator
@ 2024-02-07  3:20 ` jaminW55
  2024-02-07 19:22 ` jaminW55
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jaminW55 @ 2024-02-07  3:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1707 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1931203433

Comment:
Sorry for the delay. I've been tinkering on this one for a build and am definitely running into issues with gradle building correctly. This is my current working template, if anyone looking would like to give it a go. 

I will continue to try to build, but thought it good to share.

```
# Template file for 'Tachidesk-Server'
pkgname=Tachidesk-Server
version=0.7.0
revision=1
hostmakedepends="openjdk8 gradle unzip"
depends="openjdk8"
short_desc="A free and open source manga reader server written in Kotlin"
maintainer="jaminW55 <wellerbp@protonmail.com>"
license="MPL-2.0"
homepage="https://github.com/Suwayomi/Tachidesk-Server"
distfiles="https://github.com/Suwayomi/Suwayomi-Server/archive/refs/tags/v${version}.tar.gz"
checksum=ba18fa09ac4b7a1703d054da1ae8ff6d55af3b3b4d88b874260725ff94011656

do_build() {
	#. /etc/profile.d/jdk.sh
	export JAVA_HOME=/usr/lib/jvm/openjdk8
	gradle --no-daemon #build
}

do_install() {
    vmkdir /usr/share/Tachidesk-Server
    echo "Listing all contents of ${wrksrc}..."
    ls -lR ${wrksrc} | grep "jar"

    # Copy the JAR file from the extracted directory
    #cp ${wrksrc}/${pkgname}-v${version}-r1197-linux-x64/*.jar /usr/share/Tachidesk-Server
    cp ${wrksrc}/Tachidesk-Server-1.0.jar /usr/share/Tachidesk-Server

    # Install the launcher script
    vinstall ${FILESDIR}/tachidesk-server.sh 755 usr/bin tachidesk-server

    # Install the desktop file
    vmkdir /usr/share/applications
    vinstall ${FILESDIR}/tachidesk-server.desktop 644 usr/share/applications
}

```


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (10 preceding siblings ...)
  2024-02-07  3:20 ` jaminW55
@ 2024-02-07 19:22 ` jaminW55
  2024-02-08  6:50 ` jaminW55
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jaminW55 @ 2024-02-07 19:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1700 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1931203433

Comment:
Sorry for the delay. I've been tinkering on this one for a build and am definitely running into issues with gradle building correctly. This is my current working template, if anyone looking would like to give it a go. 

I will continue to try to build, but thought it good to share.

```
# Template file for 'Tachidesk-Server'
pkgname=Tachidesk-Server
version=0.7.0
revision=1
hostmakedepends="openjdk8 gradle unzip"
depends="openjdk8"
short_desc="A free and open source manga reader server written in Kotlin"
maintainer="jaminW55 <jaminW@proton.me>"
license="MPL-2.0"
homepage="https://github.com/Suwayomi/Tachidesk-Server"
distfiles="https://github.com/Suwayomi/Suwayomi-Server/archive/refs/tags/v${version}.tar.gz"
checksum=ba18fa09ac4b7a1703d054da1ae8ff6d55af3b3b4d88b874260725ff94011656

do_build() {
	#. /etc/profile.d/jdk.sh
	export JAVA_HOME=/usr/lib/jvm/openjdk8
	gradle --no-daemon #build
}

do_install() {
    vmkdir /usr/share/Tachidesk-Server
    echo "Listing all contents of ${wrksrc}..."
    ls -lR ${wrksrc} | grep "jar"

    # Copy the JAR file from the extracted directory
    #cp ${wrksrc}/${pkgname}-v${version}-r1197-linux-x64/*.jar /usr/share/Tachidesk-Server
    cp ${wrksrc}/Tachidesk-Server-1.0.jar /usr/share/Tachidesk-Server

    # Install the launcher script
    vinstall ${FILESDIR}/tachidesk-server.sh 755 usr/bin tachidesk-server

    # Install the desktop file
    vmkdir /usr/share/applications
    vinstall ${FILESDIR}/tachidesk-server.desktop 644 usr/share/applications
}

```


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (11 preceding siblings ...)
  2024-02-07 19:22 ` jaminW55
@ 2024-02-08  6:50 ` jaminW55
  2024-02-12  1:02 ` jaminW55
  2024-02-12  1:02 ` jaminW55
  14 siblings, 0 replies; 16+ messages in thread
From: jaminW55 @ 2024-02-08  6:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1700 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1931203433

Comment:
Sorry for the delay. I've been tinkering on this one for a build and am definitely running into issues with gradle building correctly. This is my current working template, if anyone looking would like to give it a go. 

I will continue to try to build, but thought it good to share.

```
# Template file for 'Tachidesk-Server'
pkgname=Tachidesk-Server
version=0.7.0
revision=1
hostmakedepends="openjdk8 gradle unzip"
depends="openjdk8"
short_desc="A free and open source manga reader server written in Kotlin"
maintainer="jaminW55 <jaminW@proton.me>"
license="MPL-2.0"
homepage="https://github.com/Suwayomi/Tachidesk-Server"
distfiles="https://github.com/Suwayomi/Suwayomi-Server/archive/refs/tags/v${version}.tar.gz"
checksum=ba18fa09ac4b7a1703d054da1ae8ff6d55af3b3b4d88b874260725ff94011656

do_build() {
	#. /etc/profile.d/jdk.sh
	export JAVA_HOME=/usr/lib/jvm/openjdk8
	gradle --no-daemon #build
}

do_install() {
    vmkdir /usr/share/Tachidesk-Server
    echo "Listing all contents of ${wrksrc}..."
    ls -lR ${wrksrc} | grep "jar"

    # Copy the JAR file from the extracted directory
    #cp ${wrksrc}/${pkgname}-v${version}-r1197-linux-x64/*.jar /usr/share/Tachidesk-Server
    cp ${wrksrc}/Tachidesk-Server-1.0.jar /usr/share/Tachidesk-Server

    # Install the launcher script
    vinstall ${FILESDIR}/tachidesk-server.sh 755 usr/bin tachidesk-server

    # Install the desktop file
    vmkdir /usr/share/applications
    vinstall ${FILESDIR}/tachidesk-server.desktop 644 usr/share/applications
}

```


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (12 preceding siblings ...)
  2024-02-08  6:50 ` jaminW55
@ 2024-02-12  1:02 ` jaminW55
  2024-02-12  1:02 ` jaminW55
  14 siblings, 0 replies; 16+ messages in thread
From: jaminW55 @ 2024-02-12  1:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1705 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1937947791

Comment:
Update:

I managed to get the build to run, however, the package is having issues identifying the entered sha. I used `xbps-fetch -s URL` to retrieve the associated sha, so I am not certain why this may be the case. Regardless, here is the progress thus far.

It builds, but does not install.

```
# Template file for 'Tachidesk-Server'
pkgname=Tachidesk-Server
version=0.7.0
revision=1
hostmakedepends="openjdk8 gradle unzip"
depends="openjdk8"
short_desc="Free and open source manga reader server written in Kotlin"
maintainer="jaminW55 <jaminW@proton.me>"
license="MPL-2.0"
homepage="https://github.com/Suwayomi/Tachidesk-Server"
distfiles="https://github.com/Suwayomi/Suwayomi-Server/archive/refs/tags/v${version}.tar.gz
https://github.com/Suwayomi/Suwayomi-Server/releases/download/v${version}/Tachidesk-Server-v${version}-r1197.jar"
checksums="ba18fa09ac4b7a1703d054da1ae8ff6d55af3b3b4d88b874260725ff94011656
e033b55a2042bbff32a45809741984c105d0d716960256edf0de5310ba265550"

do_build() {
	export JAVA_HOME=/usr/lib/jvm/openjdk8
	gradle --no-daemon #build
}

do_install() {
    echo "Listing all contents of ${wrksrc}..."
    find ${wrksrc} -name "*.jar" -exec ls -l {} \;

    cp ${wrksrc}/buildSrc/build/libs/*.jar /usr/share/Tachidesk-Server
    cp ${wrksrc}/gradle/wrapper/gradle-wrapper.jar /usr/share/Tachidesk-Server

    vinstall ${FILESDIR}/tachidesk-server.sh 755 usr/bin tachidesk-server
    vmkdir /usr/share/applications
    vinstall ${FILESDIR}/tachidesk-server.desktop 644 usr/share/applications
}
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Package request: Tachidesk-Server 
  2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
                   ` (13 preceding siblings ...)
  2024-02-12  1:02 ` jaminW55
@ 2024-02-12  1:02 ` jaminW55
  14 siblings, 0 replies; 16+ messages in thread
From: jaminW55 @ 2024-02-12  1:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1780 bytes --]

New comment by jaminW55 on void-packages repository

https://github.com/void-linux/void-packages/issues/48155#issuecomment-1937947791

Comment:
Update:

I managed to get the build to run, however, the package is having issues identifying the entered sha. I used `xbps-fetch -s URL` to retrieve the associated sha, so I am not certain why this may be the case. Regardless, here is the progress thus far.

I am certain I've made other errors, please feel free to correct.

TLDR: It builds, but does not install.

```
# Template file for 'Tachidesk-Server'
pkgname=Tachidesk-Server
version=0.7.0
revision=1
hostmakedepends="openjdk8 gradle unzip"
depends="openjdk8"
short_desc="Free and open source manga reader server written in Kotlin"
maintainer="jaminW55 <jaminW@proton.me>"
license="MPL-2.0"
homepage="https://github.com/Suwayomi/Tachidesk-Server"
distfiles="https://github.com/Suwayomi/Suwayomi-Server/archive/refs/tags/v${version}.tar.gz
https://github.com/Suwayomi/Suwayomi-Server/releases/download/v${version}/Tachidesk-Server-v${version}-r1197.jar"
checksums="ba18fa09ac4b7a1703d054da1ae8ff6d55af3b3b4d88b874260725ff94011656
e033b55a2042bbff32a45809741984c105d0d716960256edf0de5310ba265550"

do_build() {
	export JAVA_HOME=/usr/lib/jvm/openjdk8
	gradle --no-daemon #build
}

do_install() {
    echo "Listing all contents of ${wrksrc}..."
    find ${wrksrc} -name "*.jar" -exec ls -l {} \;

    cp ${wrksrc}/buildSrc/build/libs/*.jar /usr/share/Tachidesk-Server
    cp ${wrksrc}/gradle/wrapper/gradle-wrapper.jar /usr/share/Tachidesk-Server

    vinstall ${FILESDIR}/tachidesk-server.sh 755 usr/bin tachidesk-server
    vmkdir /usr/share/applications
    vinstall ${FILESDIR}/tachidesk-server.desktop 644 usr/share/applications
}
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-02-12  1:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-10 18:02 [ISSUE] Package request: Tachidesk-Server jaminW55
2024-01-15  5:56 ` jaminW55
2024-01-15  6:03 ` classabbyamp
2024-01-15  6:09 ` jaminW55
2024-01-15  6:36 ` jaminW55
2024-01-15  6:39 ` classabbyamp
2024-01-15  6:59 ` jaminW55
2024-01-21  1:24 ` oreo639
2024-01-21  1:40 ` classabbyamp
2024-01-21  1:42 ` classabbyamp
2024-02-02  9:25 ` meator
2024-02-07  3:20 ` jaminW55
2024-02-07 19:22 ` jaminW55
2024-02-08  6:50 ` jaminW55
2024-02-12  1:02 ` jaminW55
2024-02-12  1:02 ` jaminW55

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).