summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2020-05-15 20:13:33 +0200
committerEmmanuel Gil Peyrot2020-05-15 20:13:33 +0200
commit12d50fa9558c4c1b1c0588bed2a7c25a311e8039 (patch)
treefe16bee8be3ccf5bf62067216ccb14ee1a416194
parent3ca69f4f9157975d298c05589d84f46f29076166 (diff)
downloadaur-12d50fa9558c4c1b1c0588bed2a7c25a311e8039.tar.gz
Change the default install location from /usr/local to /usr
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6bb32bf097b1..0fe9db34d7aa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 07c485719a8d..80fc3a9e0fda 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}