diff options
author | Vaporeon | 2021-01-16 03:30:50 +1300 |
---|---|---|
committer | Vaporeon | 2021-01-16 03:30:50 +1300 |
commit | 2d8b151aebfc197ade538d1e71d384995f28eba4 (patch) | |
tree | c5e112a1c3371b4d9da0df77d9f8cb86bcfc53d6 /PKGBUILD | |
parent | fd24756adc9f2cfbdb0102ceb02373c853269744 (diff) | |
download | aur-2d8b151aebfc197ade538d1e71d384995f28eba4.tar.gz |
clean this up
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 25 insertions, 26 deletions
@@ -15,41 +15,40 @@ source=(blastem::hg+http://rhope.retrodev.com/repos/blastem 'menu.patch') sha256sums=('SKIP' '4b8e76103e1d607f2e4117c1a23e1d97b2bdca5f01ac2b5d3b433478a3b211d6') -_hgrepo="blastem" pkgver() { - cd $srcdir/$_hgrepo - printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)" | sed s/+//g + cd $srcdir/${pkgname%-hg} + printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)" | sed s/+//g } prepare() { - cd "$srcdir/${pkgname%-hg}" - patch -Np1 -i "${srcdir}/menu.patch" - chmod a+x menumake.sh install.sh - #GCC10 workaround - perl -pi -e 's|(CFLAGS:=)(-std=gnu99.*)|\1-fcommon \2|g' Makefile + cd "$srcdir/${pkgname%-hg}" + patch -Np1 -i "${srcdir}/menu.patch" + chmod a+x menumake.sh install.sh + #GCC10 workaround + perl -pi -e 's|(CFLAGS:=)(-std=gnu99.*)|\1-fcommon \2|g' Makefile } build() { - cd "$srcdir/${pkgname%-hg}" - make blastem - ./menumake.sh + cd "$srcdir/${pkgname%-hg}" + make blastem + ./menumake.sh } package() { - cd "$srcdir/${pkgname%-hg}" - ./install.sh - mkdir -p "$pkgdir/opt/blastem" - install -d -g games "$pkgdir/opt/blastem" - install -m 755 -g games -D to_install/* "$pkgdir/opt/blastem" - install -m 666 -g games -D default.cfg "$pkgdir/opt/blastem" - install -m 666 -g games rom.db gamecontrollerdb.txt "$pkgdir/opt/blastem" - install -m 644 -g games -d "$pkgdir/opt/blastem/shaders" - install -m 644 -g games -D shaders/* "$pkgdir/opt/blastem/shaders" - chmod 755 "$pkgdir/opt/blastem/blastem" - chown root:games "$pkgdir/opt/blastem" - chown root:games "$pkgdir/opt/blastem/shaders" - chmod 755 "$pkgdir/opt/blastem/shaders" - mkdir -p "$pkgdir/usr/bin" - ln -s "/opt/blastem/blastem" "$pkgdir/usr/bin/blastem" + cd "$srcdir/${pkgname%-hg}" + ./install.sh + mkdir -p "$pkgdir/opt/blastem" + install -d -g games "$pkgdir/opt/blastem" + install -m 755 -g games -D to_install/* "$pkgdir/opt/blastem" + install -m 666 -g games -D default.cfg "$pkgdir/opt/blastem" + install -m 666 -g games rom.db gamecontrollerdb.txt "$pkgdir/opt/blastem" + install -m 644 -g games -d "$pkgdir/opt/blastem/shaders" + install -m 644 -g games -D shaders/* "$pkgdir/opt/blastem/shaders" + chmod 755 "$pkgdir/opt/blastem/blastem" + chown root:games "$pkgdir/opt/blastem" + chown root:games "$pkgdir/opt/blastem/shaders" + chmod 755 "$pkgdir/opt/blastem/shaders" + mkdir -p "$pkgdir/usr/bin" + ln -s "/opt/blastem/blastem" "$pkgdir/usr/bin/blastem" } |