opensonic: unbreak
This commit is contained in:
parent
613651c918
commit
cf172285f1
|
@ -1,3 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
|
|
||||||
exec /usr/share/opensonic/opensonic
|
|
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'opensonic'
|
# Template file for 'opensonic'
|
||||||
pkgname=opensonic
|
pkgname=opensonic
|
||||||
version=0.1.4
|
version=0.1.4
|
||||||
revision=8
|
revision=9
|
||||||
wrksrc="opensnc-src-${version}"
|
wrksrc="opensnc-src-${version}"
|
||||||
build_style=gnu-makefile
|
build_style=cmake
|
||||||
hostmakedepends="cmake"
|
hostmakedepends="allegro4-devel cmake"
|
||||||
makedepends="allegro4-devel libpng-devel libvorbis-devel"
|
makedepends="allegro4-devel libpng-devel libvorbis-devel"
|
||||||
depends="${pkgname}-data desktop-file-utils"
|
depends="${pkgname}-data desktop-file-utils"
|
||||||
short_desc="Open-source game based on the Sonic the Hedgehog universe"
|
short_desc="Open-source game based on the Sonic the Hedgehog universe"
|
||||||
|
@ -16,21 +16,23 @@ distfiles="${SOURCEFORGE_SITE}/opensnc/opensnc-src-${version}.tar.gz
|
||||||
https://github.com/t6/loggcompat/archive/${_loggcompat_ver}.tar.gz"
|
https://github.com/t6/loggcompat/archive/${_loggcompat_ver}.tar.gz"
|
||||||
checksum="3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
|
checksum="3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
|
||||||
481fe569959eefa92d0babeca27709b2efcf7a815cd5c49596b6c0403db76a4e"
|
481fe569959eefa92d0babeca27709b2efcf7a815cd5c49596b6c0403db76a4e"
|
||||||
broken="ELF in /usr/share"
|
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
mv ${XBPS_BUILDDIR}/loggcompat-${_loggcompat_ver} .
|
mv ${XBPS_BUILDDIR}/loggcompat-${_loggcompat_ver} .
|
||||||
}
|
}
|
||||||
|
CFLAGS="-I./../loggcompat-${_loggcompat_ver}"
|
||||||
|
LDFLAGS="-Wl,--no-as-needed"
|
||||||
|
|
||||||
do_configure() {
|
pre_configure() {
|
||||||
LDFLAGS="-Wl,--no-as-needed" \
|
# mimic what `./configure` would do
|
||||||
CFLAGS="-Iloggcompat-${_loggcompat_ver}" \
|
export _ALLEGRO_LIBS="$(allegro-config --libs)"
|
||||||
./configure -DCMAKE_INSTALL_PREFIX=/usr
|
export _ALLEGRO_VERSION="$(allegro-config --version)"
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
rm ${DESTDIR}/usr/share/opensonic/opensonic
|
||||||
|
vbin build/opensonic
|
||||||
vinstall icon.png 644 usr/share/${pkgname}
|
vinstall icon.png 644 usr/share/${pkgname}
|
||||||
vbin ${FILESDIR}/opensonic.sh opensonic
|
|
||||||
vinstall ${FILESDIR}/opensonic.desktop 644 usr/share/applications
|
vinstall ${FILESDIR}/opensonic.desktop 644 usr/share/applications
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue