summaryrefslogtreecommitdiff
path: root/user/torcs/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-12 01:39:54 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-12 01:39:54 +0000
commit5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d (patch)
tree2b8febb001be429260957e56ae975964774f4aeb /user/torcs/APKBUILD
parent750ede08c898240f8c8c9e74277ca1580b3f10f3 (diff)
downloadpackages-5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d.tar.gz
packages-5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d.tar.bz2
packages-5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d.tar.xz
packages-5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d.zip
user/*: Modernise / fix syntax / metadata / deps
Diffstat (limited to 'user/torcs/APKBUILD')
-rw-r--r--user/torcs/APKBUILD7
1 files changed, 2 insertions, 5 deletions
diff --git a/user/torcs/APKBUILD b/user/torcs/APKBUILD
index ef7c3cb23..d8470bf18 100644
--- a/user/torcs/APKBUILD
+++ b/user/torcs/APKBUILD
@@ -11,7 +11,7 @@ license="GPL-2.0+"
depends=""
makedepends="freealut-dev freeglut-dev libogg-dev libpng-dev libsm-dev
libvorbis-dev libxmu-dev libxrandr-dev libxrender-dev libxt-dev mesa-dev
- openal-soft-dev plib-dev zlib-dev"
+ openal-soft-dev plib-dev zlib-dev autoconf automake"
subpackages="$pkgname-data::noarch"
source="https://sourceforge.net/projects/torcs/files/all-in-one/$pkgver/torcs-$pkgver.tar.bz2
torcs-1.3.6-as-needed.patch
@@ -22,7 +22,6 @@ source="https://sourceforge.net/projects/torcs/files/all-in-one/$pkgver/torcs-$p
"
build() {
- cd "$builddir"
export CXXFLAGS="$CXXFLAGS -fpermissive" # GCC 8
autoreconf
./configure \
@@ -36,16 +35,14 @@ build() {
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
}
data() {
pkgdesc="Data files for TORCS"
- cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/games
chgrp games "$subpkgdir"/usr/share/games
- make DESTDIR="$subpkgdir" datainstall
+ make DESTDIR="$subpkgdir" -C "$builddir" datainstall
}
sha512sums="14b88624803c746b2f356fa185aca5be56b7d7e5192fede11307474100328bfaa67eafa61e84987bbad04590ae5740127e015707723df6d2c3197bb867818101 torcs-1.3.7.tar.bz2