replace BINARY_DIR with the sed expression instead of BINARY_PATH

This commit is contained in:
Gilrain 2020-07-07 18:53:22 +02:00
parent 2a8b9cf725
commit 9510d6ae22
No known key found for this signature in database
GPG key ID: DDA0B85649CD9010
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = asf
pkgdesc = Steam cards farmer.
pkgver = 4.2.3.3
pkgrel = 1
pkgrel = 2
url = https://github.com/JustArchiNET/ArchiSteamFarm
install = install
changelog = changelog

View file

@ -3,7 +3,7 @@
pkgname="asf"
pkgver="4.2.3.3"
pkgrel=1
pkgrel=2
pkgdesc="Steam cards farmer."
arch=('x86_64' 'armv7h' 'aarch64')
url="https://github.com/JustArchiNET/ArchiSteamFarm"
@ -36,7 +36,7 @@ package() {
install -d -m 755 "${pkgdir}/usr/lib/${pkgname}"
cp -rdp --no-preserve=ownership . "${pkgdir}/usr/lib/asf"
install -D -m755 ../../run.sh "${pkgdir}/usr/bin/${pkgname}"
sed -i 's,^\(BINARY_PATH[ ]*=\).*,\1'/usr/lib/asf',g' "${pkgdir}/usr/bin/${pkgname}"
sed -i 's,^\(BINARY_DIR[ ]*=\).*,\1'/usr/lib/asf',g' "${pkgdir}/usr/bin/${pkgname}"
find "${pkgdir}/usr/lib/${pkgname}" -type f -exec chmod 644 {} \;
find "${pkgdir}/usr/lib/${pkgname}" -type d -exec chmod 755 {} \;