mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 00:12:56 +02:00
opensonic: split data package [ci skip]
This commit is contained in:
parent
9d3e9d1f5d
commit
5a53ba4c45
2 changed files with 29 additions and 8 deletions
1
srcpkgs/opensonic-data
Symbolic link
1
srcpkgs/opensonic-data
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
opensonic
|
|
@ -1,14 +1,15 @@
|
||||||
# Template file for 'opensonic'
|
# Template file for 'opensonic'
|
||||||
pkgname=opensonic
|
pkgname=opensonic
|
||||||
version=0.1.4
|
version=0.1.4
|
||||||
revision=6
|
revision=7
|
||||||
wrksrc="opensnc-src-${version}"
|
wrksrc="opensnc-src-${version}"
|
||||||
|
build_style=gnu-makefile
|
||||||
hostmakedepends="cmake"
|
hostmakedepends="cmake"
|
||||||
makedepends="allegro4-devel libpng-devel libvorbis-devel"
|
makedepends="allegro4-devel libpng-devel libvorbis-devel"
|
||||||
depends="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"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2.0-or-later"
|
||||||
homepage="http://opensnc.sourceforge.net/"
|
homepage="http://opensnc.sourceforge.net/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/opensnc/opensnc-src-${version}.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/opensnc/opensnc-src-${version}.tar.gz"
|
||||||
checksum=3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
|
checksum=3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
|
||||||
|
@ -16,12 +17,31 @@ checksum=3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
|
||||||
do_configure() {
|
do_configure() {
|
||||||
LDFLAGS="$LDFLAGS -Wl,--no-as-needed" ./configure --prefix=/usr
|
LDFLAGS="$LDFLAGS -Wl,--no-as-needed" ./configure --prefix=/usr
|
||||||
}
|
}
|
||||||
do_build() {
|
|
||||||
make ${makejobs}
|
post_install() {
|
||||||
}
|
|
||||||
do_install() {
|
|
||||||
make DESTDIR=${DESTDIR} install
|
|
||||||
vinstall icon.png 644 usr/share/${pkgname}
|
vinstall icon.png 644 usr/share/${pkgname}
|
||||||
vbin ${FILESDIR}/opensonic.sh opensonic
|
vbin ${FILESDIR}/opensonic.sh opensonic
|
||||||
vinstall ${FILESDIR}/opensonic.desktop 644 usr/share/applications
|
vinstall ${FILESDIR}/opensonic.desktop 644 usr/share/applications
|
||||||
}
|
}
|
||||||
|
|
||||||
|
opensonic-data_package() {
|
||||||
|
short_desc+=" - data files"
|
||||||
|
noarch=yes
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/share/opensonic/config
|
||||||
|
vmove usr/share/opensonic/images
|
||||||
|
vmove usr/share/opensonic/languages
|
||||||
|
vmove usr/share/opensonic/levels
|
||||||
|
vmove usr/share/opensonic/licenses
|
||||||
|
vmove usr/share/opensonic/musics
|
||||||
|
vmove usr/share/opensonic/objects
|
||||||
|
vmove usr/share/opensonic/quests
|
||||||
|
vmove usr/share/opensonic/samples
|
||||||
|
vmove usr/share/opensonic/screenshots
|
||||||
|
vmove usr/share/opensonic/sprites
|
||||||
|
vmove usr/share/opensonic/themes
|
||||||
|
vmove usr/share/opensonic/icon.png
|
||||||
|
vmove usr/share/opensonic/license.txt
|
||||||
|
vmove usr/share/opensonic/readme.html
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue