[aur-general] PKGBUILD and git-lfs
Storm Dragon
stormdragon2976 at gmail.com
Fri May 27 21:35:38 UTC 2016
Howdy,
It says the directory already exists and is not empty. Here's the PKGBUILD I was working on with the git clone stuff done in the prepare() function:
Oh, and the command I'm using is just makepkg -s
Thanks
Storm
On Fri, May 27, 2016 at 12:08:06PM +0200, LoneVVolf wrote:
>On 27-05-16 09:30, Christoph Gysin wrote:
>>On Thu, May 26, 2016 at 8:47 PM, Storm Dragon <stormdragon2976 at gmail.com> wrote:
>>>I have a PKGBUILD that requires git-lfs. It fails every time, even though,
>>What command do you use to build? How does it fail?
>
>Christoph, check https://bbs.archlinux.org/viewtopic.php?id=211424 .
>
>upstream repo uses an extension for git called lfs ,makepkg handles
>git-lfs files wrong.
>
>Storm Dragon, which commands would you use to build horseshoes-git
>manually ?
>
>LW
--
Powered by Arch Linux! I am registered Linux user number 508465: https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.tk/
get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193
Twitter and Facebook are so ... yesteryear. Get your 2MB Social account TODAY! http://2mb.social/main/register
How to load Windows on your machine in 2 minutes or less: http://www.youtube.com/watch?v=FVbf9tOGwno
"Listen up to ancient tales of monsters, zombies, ghosts 'bout creatures rising from the graves to haunt the living world"
The Other - Beware of Ghouls
-------------- next part --------------
# Maintainer: Storm Dragon <stormdragon2976 at gmail.com>
# Contributer: Michael Taboada <michael at 2mb.solutions>
_pkgname=horseshoes
pkgname=horseshoes-git
pkgver=3
pkgrel=1
pkgdesc="Audio only game of horseshoes."
arch=('any')
url="https://github.com/2mb-solutions/horseshoes"
license=('unlicense')
depends=('speech-dispatcher' 'allegro')
makedepends=('gcc' 'git' 'git-lfs')
optdepends=('espeak: TTS support'
'festival: TTS support'
'flite: TTS support')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+${url}.git"
"$_pkgname.desktop"
"$_pkgname.sh")
install="${_pkgname}.install"
md5sums=('SKIP'
'7be0952ea7c4286f9f64d39bd98f1497'
'8f6e9504843af79b9a3761d833c2fdb9')
prepare()
{
cd "$srcdir"
git clone --recursive ${url}.git
}
pkgver()
{
cd "$_pkgname"
git shortlog | head -n 1 | tr -Cd "[:digit:]"
}
build()
{
cd "$_pkgname"
export LD_RUN_PATH='$ORIGIN/lib/'
if [ $# -eq 0 ]; then
g++ -static-libgcc -static-libstdc++ -O3 -I/usr/include/speech-dispatcher -I/usr/include -Igame-kit/allegro_stuff -Igame-kit/screen-reader -Igame-kit game-kit/allegro_stuff/sound.cpp game-kit/allegro_stuff/keyboard.cpp game-kit/screen-reader/screen_reader.cpp game-kit/allegro_stuff/dynamic_menu.cpp game-kit/menu_helper.cpp game-kit/misc.cpp game-kit/soundplayer.cpp play.cpp game.cpp -lallegro_ttf -lallegro_audio -lallegro_acodec -lallegro -lallegro_font -lspeechd -logg -lvorbis -lvorbisfile && mv a.out horseshoes
else
g++ -static-libgcc -static-libstdc++ -m32 -O3 -I/usr/include/speech-dispatcher -I/usr/include -Igame-kit/allegro_stuff -Igame-kit/screen-reader -Igame-kit game-kit/allegro_stuff/sound.cpp game-kit/allegro_stuff/keyboard.cpp game-kit/screen-reader/screen_reader.cpp game-kit/allegro_stuff/dynamic_menu.cpp game-kit/menu_helper.cpp game-kit/misc.cpp game-kit/soundplayer.cpp play.cpp game.cpp -lallegro_ttf -lallegro_audio -lallegro_acodec -lallegro -lallegro_font -lspeechd -logg -lvorbis -lvorbisfile && mv a.out horseshoes
fi
unset LD_RUN_PATH
}
package()
{
cd "$_pkgname"
install -d "$pkgdir/opt/horseshoes"
install -m755 "horseshoes" "$pkgdir/opt/horseshoes"
cp -a sounds/ "$pkgdir/opt/horseshoes"
install -Dm755 "${srcdir}/${_pkgname}.sh" "$pkgdir/usr/bin/${_pkgname}"
install -Dm644 "${srcdir}/${_pkgname}.desktop" "$pkgdir/usr/share/applications/${_pkgname}.desktop"
}
# vim:set ts=2 sw=2 et:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20160527/c0cefc61/attachment.asc>
More information about the aur-general
mailing list