diff options
author | Emmanuel Gil Peyrot | 2020-05-15 20:13:33 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot | 2020-05-15 20:13:33 +0200 |
commit | 12d50fa9558c4c1b1c0588bed2a7c25a311e8039 (patch) | |
tree | fe16bee8be3ccf5bf62067216ccb14ee1a416194 | |
parent | 3ca69f4f9157975d298c05589d84f46f29076166 (diff) | |
download | aur-12d50fa9558c4c1b1c0588bed2a7c25a311e8039.tar.gz |
Change the default install location from /usr/local to /usr
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = play.it pkgdesc = Easy way to install games on Linux pkgver = 2.11.4 - pkgrel = 1 + pkgrel = 2 url = https://wiki.dotslashplay.it arch = any license = BSD @@ -3,7 +3,7 @@ pkgname=play.it pkgver=2.11.4 -pkgrel=1 +pkgrel=2 pkgdesc="Easy way to install games on Linux" arch=('any') url="https://wiki.dotslashplay.it" @@ -20,6 +20,11 @@ optdepends=( source=("${pkgname}-${pkgver}.tar.gz::https://forge.dotslashplay.it/play.it/scripts/-/archive/${pkgver}/scripts-${pkgver}.tar.gz") sha1sums=('9858a16af2e9398c8e27a15c68d43447a42a79f9') +prepare() { + cd play.it + sed -i '/DEFAULT_OPTION_PREFIX/s,=.*,=/usr,' play.it-2/src/99_init.sh +} + build() { cd scripts-$pkgver make @@ -27,7 +32,7 @@ build() { package() { cd scripts-$pkgver - make DESTDIR="$pkgdir" prefix="/usr" bindir="/usr/bin" install + make DESTDIR="$pkgdir"/ prefix=/usr bindir=/usr/bin datadir=/usr/share install install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } |