fix PKGBUILD indentation

This commit is contained in:
john smith 2023-02-02 21:23:36 +02:00 committed by ed
parent 381686fc66
commit 3866e6a3f2

View file

@ -15,25 +15,25 @@ source=("git+https://github.com/9001/${_pkgname}.git")
sha256sums=("SKIP") sha256sums=("SKIP")
prepare() { prepare() {
cd "${srcdir}/${_pkgname}" cd "${srcdir}/${_pkgname}"
cp "contrib/systemd/${_pkgname}.service" "package/arch/${_pkgname}.service" cp "contrib/systemd/${_pkgname}.service" "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/' "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 describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
} }
build() { build() {
cd "${srcdir}/${_pkgname}/scripts" cd "${srcdir}/${_pkgname}/scripts"
./make-sfx.sh gz ./make-sfx.sh gz
} }
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 "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"
} }