mirror of
				https://github.com/9001/copyparty.git
				synced 2025-10-27 02:32:44 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| # Maintainer: icxes <dev.null@need.moe>
 | |
| # Contributor: Morgan Adamiec <morganamilo@archlinux.org>
 | |
| # NOTE: You generally shouldn't use this PKGBUILD on Arch, as it is mainly for testing purposes. Install copyparty using pacman instead.
 | |
| 
 | |
| pkgname=copyparty
 | |
| pkgver="1.19.16"
 | |
| pkgrel=1
 | |
| pkgdesc="File server with accelerated resumable uploads, dedup, WebDAV, FTP, TFTP, zeroconf, media indexer, thumbnails++"
 | |
| arch=("any")
 | |
| url="https://github.com/9001/${pkgname}"
 | |
| license=('MIT')
 | |
| depends=("bash" "python" "lsof" "python-jinja")
 | |
| makedepends=("python-wheel" "python-setuptools" "python-build" "python-installer" "make" "pigz")
 | |
| optdepends=("ffmpeg: thumbnails for videos, images (slower) and audio, music tags"
 | |
|             "cfssl: generate TLS certificates on startup"
 | |
|             "python-mutagen: music tags (alternative)"
 | |
|             "python-pillow: thumbnails for images"
 | |
|             "python-pyvips: thumbnails for images (higher quality, faster, uses more ram)"
 | |
|             "libkeyfinder: detection of musical keys"
 | |
|             "python-pyopenssl: ftps functionality"
 | |
|             "python-pyzmq: send zeromq messages from event-hooks"
 | |
|             "python-argon2-cffi: hashed passwords in config"
 | |
| )
 | |
| source=("https://github.com/9001/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
 | |
| backup=("etc/${pkgname}/copyparty.conf" )
 | |
| sha256sums=("d8cc10d3623eaccc8acaebdd3b0102a1ebf878a03ffe6e737d132c66f799d682")
 | |
| 
 | |
| build() {
 | |
|     cd "${srcdir}/${pkgname}-${pkgver}/copyparty/web"
 | |
|     make
 | |
| 
 | |
|     cd "${srcdir}/${pkgname}-${pkgver}"
 | |
|     python -m build --wheel --no-isolation
 | |
| }
 | |
| 
 | |
| package() {
 | |
|     cd "${srcdir}/${pkgname}-${pkgver}"
 | |
|     python -m installer --destdir="$pkgdir" dist/*.whl
 | |
| 
 | |
|     install -dm755 "${pkgdir}/etc/${pkgname}"
 | |
|     install -Dm755 "bin/prisonparty.sh" "${pkgdir}/usr/bin/prisonparty"
 | |
|     install -Dm644 "contrib/systemd/${pkgname}.conf" "${pkgdir}/etc/${pkgname}/copyparty.conf"
 | |
|     install -Dm644 "contrib/systemd/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service"
 | |
|     install -Dm644 "contrib/systemd/${pkgname}-user.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
 | |
|     install -Dm644 "contrib/systemd/prisonparty@.service" "${pkgdir}/usr/lib/systemd/system/prisonparty@.service"
 | |
|     install -Dm644 "contrib/systemd/index.md" "${pkgdir}/var/lib/${pkgname}-jail/README.md"
 | |
|     install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 | |
| }
 |