mirror of
				https://codeberg.org/hako/Rosenthal.git
				synced 2025-11-04 03:34:37 +00:00 
			
		
		
		
	rosenthal: Add komga-bin.
* rosenthal/packages/binaries.scm (komga-bin): New package. * README.org (Packages): Add it. * etc/manifest: Add it.
This commit is contained in:
		
							parent
							
								
									9dbc67579d
								
							
						
					
					
						commit
						18758a8415
					
				@ -97,6 +97,7 @@ Binary Packages / 二進制包:
 | 
			
		||||
+ atuin-bin
 | 
			
		||||
+ clash-bin
 | 
			
		||||
+ hugo-bin
 | 
			
		||||
+ komga-bin
 | 
			
		||||
+ mihomo-bin
 | 
			
		||||
+ miniflux-injector-icecat
 | 
			
		||||
+ shadow-tls-bin
 | 
			
		||||
 | 
			
		||||
@ -10,6 +10,7 @@
 | 
			
		||||
   "cloudflared"
 | 
			
		||||
   "dinit"
 | 
			
		||||
   "hugo-bin"
 | 
			
		||||
   "komga-bin"
 | 
			
		||||
   "mihomo-bin"
 | 
			
		||||
   "shadow-tls-bin"
 | 
			
		||||
   "sing-box-bin"
 | 
			
		||||
 | 
			
		||||
@ -10,11 +10,13 @@
 | 
			
		||||
  #:use-module (guix build-system copy)
 | 
			
		||||
  #:use-module (gnu build icecat-extension)
 | 
			
		||||
  #:use-module (gnu packages base)
 | 
			
		||||
  #:use-module (gnu packages bash)
 | 
			
		||||
  #:use-module (gnu packages bootstrap)
 | 
			
		||||
  #:use-module (gnu packages compression)
 | 
			
		||||
  #:use-module (gnu packages elf)
 | 
			
		||||
  #:use-module (gnu packages gcc)
 | 
			
		||||
  #:use-module (gnu packages glib)
 | 
			
		||||
  #:use-module (gnu packages java)
 | 
			
		||||
  #:use-module (gnu packages nss))
 | 
			
		||||
 | 
			
		||||
(define license
 | 
			
		||||
@ -245,6 +247,53 @@ designed for flexibility.")
 | 
			
		||||
    (license license:asl2.0)
 | 
			
		||||
    (properties '((upstream-name . "hugo")))))
 | 
			
		||||
 | 
			
		||||
(define-public komga-bin
 | 
			
		||||
  (package
 | 
			
		||||
   (name "komga-bin")
 | 
			
		||||
   (version "1.18.0")
 | 
			
		||||
   (source (origin
 | 
			
		||||
             (method url-fetch)
 | 
			
		||||
             (uri (string-append
 | 
			
		||||
                   "https://github.com/gotson/komga/releases/download/" version
 | 
			
		||||
                   "/komga-" version ".jar"))
 | 
			
		||||
             (sha256
 | 
			
		||||
              (base32
 | 
			
		||||
               "1rjjyv2fdb8hqc46az5gw2jgza1p8kg0db98iv4cmmhzgmyljk13"))))
 | 
			
		||||
   (build-system copy-build-system)
 | 
			
		||||
   (arguments
 | 
			
		||||
    (list #:install-plan
 | 
			
		||||
          #~'((#$(string-append "komga-" (package-version this-package) ".jar")
 | 
			
		||||
               "lib/komga/komga.jar"))
 | 
			
		||||
          #:phases
 | 
			
		||||
          #~(modify-phases %standard-phases
 | 
			
		||||
              (replace 'install
 | 
			
		||||
                (lambda* (#:key inputs source #:allow-other-keys)
 | 
			
		||||
                  (let* ((lib (in-vicinity #$output "lib/komga"))
 | 
			
		||||
                         (bin (in-vicinity #$output "bin"))
 | 
			
		||||
                         (jar (in-vicinity lib "komga.jar"))
 | 
			
		||||
                         (exe "komga"))
 | 
			
		||||
                    (mkdir-p lib)
 | 
			
		||||
                    (copy-file source jar)
 | 
			
		||||
                    (call-with-output-file exe
 | 
			
		||||
                      (lambda (port)
 | 
			
		||||
                        (format port "~
 | 
			
		||||
#!~a
 | 
			
		||||
export LC_ALL=C.UTF-8
 | 
			
		||||
exec ~a -jar ~a $@~%"
 | 
			
		||||
                                (search-input-file inputs "bin/bash")
 | 
			
		||||
                                (search-input-file inputs "bin/java")
 | 
			
		||||
                                jar)))
 | 
			
		||||
                    (chmod exe #o555)
 | 
			
		||||
                    (install-file exe bin)))))))
 | 
			
		||||
   (inputs (list bash-minimal openjdk))
 | 
			
		||||
   (home-page "https://komga.org/")
 | 
			
		||||
   (synopsis "Media server for comics/mangas/BDs/magazines/eBooks")
 | 
			
		||||
   (description
 | 
			
		||||
    "Komga is a media server for your comics, mangas, BDs, magazines and
 | 
			
		||||
eBooks.")
 | 
			
		||||
   (license license:expat)
 | 
			
		||||
   (properties '((upstream-name . "komga")))))
 | 
			
		||||
 | 
			
		||||
(define miniflux-injector
 | 
			
		||||
  (package
 | 
			
		||||
    (name "miniflux-injector")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user