 3c6f0b17d0
			
		
	
	
		3c6f0b17d0
		
			
		
	
	
	
	
		
			
			* (scripts/prep.sh) prep mpr package at the same time as the arch package * (contrib/package/makedeb-mpr/) add MPR package i wanted this on my raspberry pi and i could've done it with docker but this gives me a systemd service. i haven't actually uploaded this at all --------- Signed-off-by: Beethoven <44652883+Beethoven-n@users.noreply.github.com>
		
			
				
	
	
		
			45 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| # Contributor: Beethoven <beethovenisadog@protonmail.com>
 | |
| 
 | |
| 
 | |
| pkgname=copyparty
 | |
| pkgver=1.18.8
 | |
| 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" "python3" "lsof" "python3-jinja2")
 | |
| makedepends=("python3-wheel" "python3-setuptools" "python3-build" "python3-installer" "make" "pigz")
 | |
| optdepends=("ffmpeg: thumbnails for videos, images (slower) and audio, music tags"
 | |
|             "golang-cfssl: generate TLS certificates on startup"
 | |
|             "python3-mutagen: music tags (alternative)"
 | |
|             "python3-pil: thumbnails for images"
 | |
|             "python3-openssl: ftps functionality"
 | |
|             "python3-zmq: send zeromq messages from event-hooks"
 | |
|             "python3-argon2: hashed passwords in config"
 | |
| )
 | |
| source=("https://github.com/9001/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
 | |
| backup=("/etc/${pkgname}.d/init" )
 | |
| sha256sums=("5bbda1e67f20a4a7fc10887235dba441544642d33c6d918f8a46867cda684572")
 | |
| 
 | |
| 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}.d"
 | |
|     install -Dm755 "bin/prisonparty.sh" "${pkgdir}/usr/bin/prisonparty"
 | |
|     install -Dm644 "contrib/package/makedeb-mpr/${pkgname}.conf" "${pkgdir}/etc/${pkgname}.d/init"
 | |
|     install -Dm644 "contrib/package/makedeb-mpr/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
 | |
|     install -Dm644 "contrib/package/makedeb-mpr/prisonparty.service" "${pkgdir}/usr/lib/systemd/system/prisonparty.service"
 | |
|     install -Dm644 "contrib/package/makedeb-mpr/index.md" "${pkgdir}/var/lib/${pkgname}-jail/README.md"
 | |
|     install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 | |
| }
 |