Package Details: motogt 20170406-1

Git Clone URL: https://aur.archlinux.org/motogt.git (read-only, click to copy)
Package Base: motogt
Description: 2D top-viewed game where you drive a MotoGP bike
Upstream URL: http://motogt.sourceforge.net/
Licenses: GPL2
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 1
Popularity: 0.000000
First Submitted: 2016-01-18 11:53 (UTC)
Last Updated: 2023-10-09 19:05 (UTC)

Latest Comments

ArnaudNux commented on 2023-11-11 01:23 (UTC)

https://sourceforge.net/code-snapshots/git/m/mo/motogt/code.git/motogt-code-3fdecfabc26fd2d837c44d92dfe7bf1bed31d4c3.zip --> 404 error on this link.

jose1711 commented on 2021-07-17 11:38 (UTC)

@ArnaudNux I've fixed the path to patch in the latest revision and managed to build it in a clean chroot - please try that.

ArnaudNux commented on 2021-07-11 22:00 (UTC) (edited on 2021-07-11 22:00 (UTC) by ArnaudNux)

@jose1711:

$ makepkg

/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib/libsfml-graphics-1.6.so: undefined reference to __glewCreateShaderObjectARB' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib/libsfml-graphics-1.6.so: undefined reference to__glewAttachObjectARB' collect2: error: ld returned 1 exit status make[1]: [Makefile.lnx:15: ../MotoGT.bin] Error 1 make[1]: Leaving directory '/home/tempo/motogt12072021/motogt/src/MotoGT/src' make: [Makefile:2: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

jose1711 commented on 2021-07-01 16:52 (UTC)

testcase:

curl -s https://aur.archlinux.org/cgit/aur.git/snapshot/motogt.tar.gz | tar xzf -
cd motogt
sed -i -e 's/patch.gz/patch/' -e 's/gunzip -c/cat/' PKGBUILD
gunzip cumulative.patch.gz
updpkgsums
makepkg
# this should work fine

git init
git add motogt cumulative.patch MotoGT.desktop MotoGT.png PKGBUILD .SRCINFO
# warning: CRLF will be replaced by LF in cumulative.patch.
# The file will have its original line endings in your working directory

mkdir /tmp/testrepo
pushd /tmp/testrepo; git init --bare; popd

git remote add origin /tmp/testrepo
git commit -m 'Initial commit'
git push --set-upstream origin master

cd $(mktemp -d)
git clone /tmp/testrepo
cd testrepo
makepkg
# receive error about md5sum not matching
updpkgsums
makepkg
# 2 out of 13 hunks failed - build failed

actionless commented on 2021-07-01 16:11 (UTC) (edited on 2021-07-01 16:17 (UTC) by actionless)

@jose1711

please provide the exact steps to reproduce the problem, so i can try to reproduce it with a local repo first

(as far as i remember you could force such settings per filepath/pattern)

jose1711 commented on 2021-07-01 10:03 (UTC)

@actionless

I only resort to compressed tarballs when there's an issue with CRLF - git is stripping those and then the patching breaks. I was trying to sort this out using git options but ultimately failed. If you feel like you can fix it yourself I will gladly add as a co-maintainer.

actionless commented on 2021-07-01 09:48 (UTC)

it's very bad idea using tarballs inside version control, and also makes an extra step when reviewing package changes prior to build

please get back to plain .patch files as before