blob: 6c4303e02c7db07d90031b56dcaeb7d1e258202e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zsnes
pkgver=1.51
pkgrel=9
pkgdesc="Super Nintendo emulator"
url="http://www.zsnes.com/"
arch="x86"
license="GPL"
makedepends="sdl-dev libpng-dev ncurses-dev mesa-dev automake autoconf nasm"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}151src.tar.bz2
$pkgname.desktop
zsnes.patch
zsnes-1.51-CC-quotes.patch
zsnes-1.51-depbuild.patch
zsnes-libpng15.patch
zsnes_icon.png"
_builddir="$srcdir/${pkgname}_${pkgver%.*}_${pkgver#*.}"
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
cd "$_builddir"/src
aclocal && autoconf || return 1
}
build() {
cd "$_builddir"/src
export GCC_SPECS=hardenednopie.specs
LDFLAGS="$LDFLAGS -fno-PIE"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
x_libraries=/usr/lib \
force_arch=i486 \
--enable-release \
|| return 1
make makefile.dep
make || return 1
}
package() {
cd "$_builddir"/src
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir"/zsnes.desktop \
"$pkgdir"/usr/share/applications/zsnes.desktop
install -Dm644 "$srcdir"/zsnes_icon.png \
"$pkgdir"/usr/share/pixmaps/zsnes_icon.png
mv "$pkgdir"/usr/man "$pkgdir"/usr/share
}
md5sums="7071186bf80632ae88a153239498d8c9 zsnes151src.tar.bz2
b100b2aa342c551167d7c5dcdcde9dd4 zsnes.desktop
4df831b3d87a35949bcf3fd5547decb1 zsnes.patch
69ca17611c0d4a21529a95eb37e05c2f zsnes-1.51-CC-quotes.patch
994af091cbb8f17f82d78c0ca89ac549 zsnes-1.51-depbuild.patch
c9962edc521df8876b714d061458b600 zsnes-libpng15.patch
b5260c02adfc3b7ff725041214b00bfd zsnes_icon.png"
|