diff options
author | Aidan Harris | 2016-11-28 04:01:01 +0000 |
---|---|---|
committer | Aidan Harris | 2016-11-28 04:01:01 +0000 |
commit | b2622e6863730195b03f62619e28b2f685b4ba00 (patch) | |
tree | 93804064fcde16e710035032fc84c2f99d12c105 | |
parent | 6f545bb487e96cb1dad5fb2f12da5b48f280cebe (diff) | |
download | aur-b2622e6863730195b03f62619e28b2f685b4ba00.tar.gz |
Update package to work on 32 bit systems
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | alkasir-client.install | 6 |
2 files changed, 7 insertions, 5 deletions
@@ -31,12 +31,16 @@ prepare() { then links -dump "$licenseURL" > "$srcdir/$_pkgarchive/LICENSE" fi + if [ "$_arch" == "386" ] + then + sed -i 's/amd64/386/g' "$srcdir/alkasir-client.service" # Alter the paths in the service file for 32bit systems + fi } package() { mkdir -p "$pkgdir/opt/$pkgname-linux-$_arch" - cp -a "$srcdir/$_pkgarchive/." "$pkgdir/opt/$pkgname-linux-amd64/" + cp -a "$srcdir/$_pkgarchive/." "$pkgdir/opt/$pkgname-linux-$_arch/" install -D -m644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/user/$pkgname.service" diff --git a/alkasir-client.install b/alkasir-client.install index 793d91cf748b..3efe02ec1aec 100644 --- a/alkasir-client.install +++ b/alkasir-client.install @@ -7,8 +7,6 @@ post_install() { } post_upgrade() { - # This won't work with the 32bit version - # To Do: - # * Fix Me - chown -R root:root /opt/alkasir-client-linux-amd64 + chown -R root:root /opt/alkasir-client-linux-amd64 &> /dev/null 2>&1 + chown -R root:root /opt/alkasir-client-linux-386 &> /dev/null 2>&1 } |