aboutsummaryrefslogtreecommitdiffstats
path: root/main/zsnes
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-09 11:26:48 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-09 11:26:48 +0000
commitec1c0313f0d4e9dc7cca19421c0f60ce084797b6 (patch)
tree027931a0772125d60ba3cf3a49bc7353ab40d938 /main/zsnes
parentf90a26bb941beb6f8ce592d9a34515c26a55415d (diff)
downloadaports-ec1c0313f0d4e9dc7cca19421c0f60ce084797b6.tar.bz2
aports-ec1c0313f0d4e9dc7cca19421c0f60ce084797b6.tar.xz
main/[various]: update config.sub
Diffstat (limited to 'main/zsnes')
-rw-r--r--main/zsnes/APKBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/main/zsnes/APKBUILD b/main/zsnes/APKBUILD
index 6240d9c4d8..6c4303e02c 100644
--- a/main/zsnes/APKBUILD
+++ b/main/zsnes/APKBUILD
@@ -16,16 +16,23 @@ source="http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}151src.t
zsnes-libpng15.patch
zsnes_icon.png"
-build() {
- cd "$srcdir"/${pkgname}_${pkgver%.*}_${pkgver#*.}
+_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 "$srcdir"/${pkgname}_${pkgver%.*}_${pkgver#*.}/src
- aclocal && autoconf || return 1
+ cd "$_builddir"/src
+ aclocal && autoconf || return 1
+}
+
+build() {
+ cd "$_builddir"/src
export GCC_SPECS=hardenednopie.specs
LDFLAGS="$LDFLAGS -fno-PIE"
./configure \
@@ -42,7 +49,7 @@ build() {
}
package() {
- cd "$srcdir"/${pkgname}_${pkgver%.*}_${pkgver#*.}/src
+ cd "$_builddir"/src
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir"/zsnes.desktop \
"$pkgdir"/usr/share/applications/zsnes.desktop