diff options
author | Ben DeCamp | 2018-07-19 18:03:31 -0700 |
---|---|---|
committer | Ben DeCamp | 2018-07-19 18:03:31 -0700 |
commit | 72dd917671155b49b083a82631d563b2b0865bdb (patch) | |
tree | 7f3b266716966cffae05c58ee7a1ab95d21a8c90 | |
parent | d8de09c5dac38b49debc16f0235734f1e1624271 (diff) | |
download | aur-72dd917671155b49b083a82631d563b2b0865bdb.tar.gz |
Updates PKGBUILD, streamlines variables a bit
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -9,8 +9,9 @@ license=('GPLv3') groups=() depends=('fltk') _gitcommit="c5e91e165aeb97a6cb7d6b15189538046cd301f0" +_luaver=5.3.5 source=(https://github.com/ComputerNerd/Retro-Graphics-Toolkit/archive/$_gitcommit.zip - https://www.lua.org/ftp/lua-5.3.5.tar.gz + https://www.lua.org/ftp/lua-$_luaver.tar.gz lua-Makefile.patch retro-graphics-toolkit.desktop retro-graphics-toolkit.png @@ -24,11 +25,11 @@ md5sums=('a71b4960dabbdafb1bd5f7baacc21317' '0b1b08ffcbddd6400a07ce3a3fbc0172') build() { - patch $srcdir/lua-5.3.5/src/Makefile < lua-Makefile.patch - cd $srcdir/lua-5.3.5/src + patch $srcdir/lua-$_luaver/src/Makefile < lua-Makefile.patch + cd $srcdir/lua-$_luaver/src make linux - mv $srcdir/lua-5.3.5/ $srcdir/Retro-Graphics-Toolkit-$_gitcommit/lua + mv $srcdir/lua-$_luaver/ $srcdir/Retro-Graphics-Toolkit-$_gitcommit/lua cd $srcdir/Retro-Graphics-Toolkit-$_gitcommit make } @@ -36,10 +37,9 @@ build() { package() { install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" - install -d "$pkgdir/opt/retro-graphics-toolkit" - cd $srcdir/Retro-Graphics-Toolkit-$_gitcommit - install "RetroGraphicsToolkit" "$pkgdir/opt/retro-graphics-toolkit/RetroGraphicsToolkit" - install -D *.lua "$pkgdir/opt/retro-graphics-toolkit/" + install -d "$pkgdir/opt/$pkgname" + install "$srcdir/Retro-Graphics-Toolkit-$_gitcommit/RetroGraphicsToolkit" "$pkgdir/opt/$pkgname/RetroGraphicsToolkit" + install -D $srcdir/Retro-Graphics-Toolkit-$_gitcommit/*.lua "$pkgdir/opt/$pkgname/" install -d "$pkgdir/usr/bin" install "$srcdir/RetroGraphicsToolkit.sh" $pkgdir/usr/bin/RetroGraphicsToolkit |