mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix PKGBUILD more
This commit is contained in:
parent
3866e6a3f2
commit
c58f2ef61f
|
@ -1,7 +1,7 @@
|
||||||
# Maintainer: John Smith <devnull@need.moe>
|
# Maintainer: John Smith <devnull@need.moe>
|
||||||
pkgname=copyparty-git
|
pkgname=copyparty-git
|
||||||
_pkgname=copyparty
|
_pkgname=copyparty
|
||||||
pkgver=1.6.3.r2.ga918c28
|
pkgver=3866e6a
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Portable file sharing hub"
|
pkgdesc="Portable file sharing hub"
|
||||||
arch=("any")
|
arch=("any")
|
||||||
|
@ -16,13 +16,13 @@ sha256sums=("SKIP")
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${srcdir}/${_pkgname}"
|
cd "${srcdir}/${_pkgname}"
|
||||||
cp "contrib/systemd/${_pkgname}.service" "package/arch/${_pkgname}.service"
|
cp "contrib/systemd/${_pkgname}.service" "contrib/package/arch/${_pkgname}.service"
|
||||||
sed -i 's/\/usr\/local\/bin\/copyparty-sfx.py/\/usr\/bin\/copyparty/' "package/arch/${_pkgname}.service"
|
sed -i 's/\/usr\/local\/bin\/copyparty-sfx.py/\/usr\/bin\/copyparty/' "contrib/package/arch/${_pkgname}.service"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "${srcdir}/${_pkgname}"
|
cd "${srcdir}/${_pkgname}"
|
||||||
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
git rev-parse --short HEAD
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -33,7 +33,7 @@ build() {
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${_pkgname}"
|
cd "${srcdir}/${_pkgname}"
|
||||||
install -Dm755 "dist/copyparty-sfx-gz.py" "${pkgdir}/usr/bin/${_pkgname}"
|
install -Dm755 "dist/copyparty-sfx-gz.py" "${pkgdir}/usr/bin/${_pkgname}"
|
||||||
install -Dm644 "package/arch/${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
|
install -Dm644 "contrib/package/arch/${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
|
||||||
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
|
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
|
||||||
echo "If this is your first time installing copyparty, you'll want to copy the systemd service file to /etc/systemd/system and edit it to suit your needs"
|
echo "If this is your first time installing copyparty, you'll want to copy the systemd service file to /etc/systemd/system and edit it to suit your needs"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue