summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAdler Neves2020-12-22 02:02:36 -0300
committerAdler Neves2020-12-22 02:02:36 -0300
commit212a26fe61679349cb143ab10a5fd94b6d2ab306 (patch)
tree1a56f7245dc4297f51099cd0fef2de86663d32f5 /PKGBUILD
parent9addaab62823c591180718052b942d1847863f90 (diff)
downloadaur-anime4k-git.tar.gz
fixing broken build script: both HLSL and Java implementations got removed from upstream repository
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 5 insertions, 34 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3c95c0c133d..dcacf506fcb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@
provides=('anime4k')
conflicts=('anime4k')
-pkgver=r179.2a7a486
+pkgver=r349.dad28f9
pkgname=anime4k-git
pkgrel=1
pkgdesc="A High-Quality Real Time Upscaler for Anime Video"
arch=('any')
-depends=('java-runtime>=12' 'xdg-utils')
-makedepends=('java-environment>=12' 'maven' 'go-md2man')
+depends=()
+makedepends=('go-md2man')
url="https://github.com/bloc97/Anime4K#anime4k"
options=()
license=('MIT')
@@ -20,44 +20,15 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-prepare() {
- cd "${srcdir}"
- mkdir -p script
- echo "#!/bin/bash" > script/anime4k
- echo "/usr/lib/jvm/java-13-openjdk/bin/java -jar /usr/share/java/anime4k/Anime4K.jar \"\$@\"" >> script/anime4k
- echo "#!/bin/bash" > script/anime4k-web
- echo "xdg-open file:///usr/share/webapps/anime4k/index.html" >> script/anime4k-web
- go-md2man -in anime4k/Java_Instructions.md -out java.man
- go-md2man -in anime4k/GLSL_Instructions.md -out glsl.man
- go-md2man -in anime4k/HLSL_Instructions.md -out hlsl.man
-}
-
build() {
cd "${srcdir}"
- cd anime4k/java
- JAVA_HOME=/usr/lib/jvm/java-13-openjdk bash build.sh
- cd ../..
+ go-md2man -in anime4k/GLSL_Instructions.md -out glsl.man
}
package() {
cd "${pkgdir}"
- install -d "${pkgdir}"/usr/share/java/anime4k
- install -d "${pkgdir}"/usr/share/webapps/anime4k
install -d "${pkgdir}"/usr/share/anime4k
- install -d "${pkgdir}"/usr/share/anime4k/glsl
- install -d "${pkgdir}"/usr/share/anime4k/hlsl
install -d "${pkgdir}"/usr/share/man/man1
- install -d "${pkgdir}"/usr/bin
- install "${srcdir}"/script/anime4k -m 755 "${pkgdir}"/usr/bin
- install "${srcdir}"/script/anime4k-web -m 755 "${pkgdir}"/usr/bin
- install "${srcdir}"/java.man -m 644 "${pkgdir}"/usr/share/man/man1/anime4k.1
- install "${srcdir}"/glsl.man -m 644 "${pkgdir}"/usr/share/man/man1/anime4k-glsl.1
- install "${srcdir}"/hlsl.man -m 644 "${pkgdir}"/usr/share/man/man1/anime4k-hlsl.1
- install "${srcdir}"/anime4k/java/Anime4K.jar -m 755 "${pkgdir}"/usr/share/java/anime4k
- cp -rf "${srcdir}"/anime4k/web/. "${pkgdir}"/usr/share/webapps/anime4k/.
- rm "${pkgdir}"/usr/share/webapps/anime4k/input.png # removing copyrighted material
+ install "${srcdir}"/glsl.man -m 644 "${pkgdir}"/usr/share/man/man1/anime4k.1
cp -rf "${srcdir}"/anime4k/glsl/. "${pkgdir}"/usr/share/anime4k/.
- cp -rf "${srcdir}"/anime4k/hlsl/. "${pkgdir}"/usr/share/anime4k/.
- cp -rf "${srcdir}"/anime4k/glsl/. "${pkgdir}"/usr/share/anime4k/glsl/.
- cp -rf "${srcdir}"/anime4k/hlsl/. "${pkgdir}"/usr/share/anime4k/hlsl/.
}