scratch: honour our hardening flags
This commit is contained in:
parent
7be35f982a
commit
8f5f75dae5
|
@ -1,27 +1,35 @@
|
||||||
# Template file for 'scratch'
|
# Template file for 'scratch'
|
||||||
pkgname=scratch
|
pkgname=scratch
|
||||||
version=1.4.0.7
|
version=1.4.0.7
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname}-${version}.src"
|
wrksrc="${pkgname}-${version}.src"
|
||||||
|
build_style=gnu-makefile
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="squeak pango-devel shared-mime-info desktop-file-utils gtk-update-icon-cache"
|
makedepends="squeak pango-devel shared-mime-info desktop-file-utils gtk-update-icon-cache"
|
||||||
depends="${makedepends/pango-devel/}"
|
depends="${makedepends/pango-devel/}"
|
||||||
short_desc="Create and share your own interactive stories, games, music and art"
|
short_desc="Create and share your own interactive stories, games, music and art"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2"
|
license="GPL-2.0-only, MIT"
|
||||||
homepage="http://scratch.mit.edu"
|
homepage="http://scratch.mit.edu"
|
||||||
distfiles="http://download.scratch.mit.edu/${pkgname}-${version}.src.tar.gz"
|
distfiles="http://download.scratch.mit.edu/${pkgname}-${version}.src.tar.gz"
|
||||||
checksum=b94d89278ecef2ba2d1147eec23936dd99697293ffa2c216c0a375ba98226a3e
|
checksum=b94d89278ecef2ba2d1147eec23936dd99697293ffa2c216c0a375ba98226a3e
|
||||||
|
|
||||||
do_build() {
|
post_patch() {
|
||||||
make CC=$CC CFLAGS="$CFLAGS" ${makejobs} build
|
sed -n -e '/Author:/,/IN THE SOFTWARE/p' \
|
||||||
|
src/plugins/wedo/WeDoLinux.c >LICENSE.MIT
|
||||||
|
find . -name Makefile -exec \
|
||||||
|
sed -i -e '
|
||||||
|
/gcc.*CFLAGS/s/gcc/$(CC) $(CPPFLAGS)/
|
||||||
|
/gcc -shared/s/gcc/$(CC) $(LDFLAGS)/
|
||||||
|
' {} +
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin src/scratch
|
vbin src/scratch
|
||||||
vinstall Scratch.image 644 usr/lib/scratch
|
vinstall Scratch.image 644 usr/lib/scratch
|
||||||
vinstall Scratch.ini 644 usr/lib/scratch
|
vinstall Scratch.ini 644 usr/lib/scratch
|
||||||
vinstall src/scratch.desktop 644 usr/share/applications
|
vinstall src/scratch.desktop 644 usr/share/applications
|
||||||
vinstall src/man/scratch.1.gz 644 usr/share/man/man1
|
vman src/man/scratch.1.gz
|
||||||
vinstall src/scratch.xml 644 usr/share/mime/packages
|
vinstall src/scratch.xml 644 usr/share/mime/packages
|
||||||
install -dm755 ${DESTDIR}/usr/share/{scratch,icons/hicolor}
|
install -dm755 ${DESTDIR}/usr/share/{scratch,icons/hicolor}
|
||||||
|
|
||||||
|
@ -32,4 +40,6 @@ do_install() {
|
||||||
install -D -m644 src/icons/${res}x${res}/scratch.png \
|
install -D -m644 src/icons/${res}x${res}/scratch.png \
|
||||||
${DESTDIR}/usr/share/icons/hicolor/${res}x${res}/apps/scratch.png
|
${DESTDIR}/usr/share/icons/hicolor/${res}x${res}/apps/scratch.png
|
||||||
done
|
done
|
||||||
|
vlicense NOTICE
|
||||||
|
vlicense LICENSE.MIT
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue