(define-module (wireshare)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system copy)
  #:use-module (guix licenses)
  #:use-module (gnu packages java))

(package
  (name "wireshare")
  (version "@release_version@")
  (source
   (origin
     (method url-fetch)
     (uri "@source_tarball_url@")
     (sha256
      (base32 "@source_tarball_nix_base32@"))))
  (build-system copy-build-system)
  (arguments
   '(#:install-plan
     '(("packaging/common" "share/wireshare/packaging/common")
       ("nativelibs/linux" "share/wireshare/nativelibs/linux"))))
  (native-inputs (list openjdk21))
  (synopsis "Peer-to-peer sharing for Gnutella, BitTorrent, magnet, and eD2k")
  (description
   "WireShare is a desktop peer-to-peer client that continues the LimeWire and
LimeWire Pirate Edition lineage while shipping a consistent Linux desktop
identity across hosted builders and distro recipes.")
  (home-page "@release_homepage_url@")
  (license gpl3+))
