[arch-commits] Commit in gens/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Tue Apr 3 13:08:24 UTC 2018
Date: Tuesday, April 3, 2018 @ 13:08:23
Author: alucryd
Revision: 313965
upgpkg: gens 2.15.5-11
Modified:
gens/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-04-03 11:22:03 UTC (rev 313964)
+++ PKGBUILD 2018-04-03 13:08:23 UTC (rev 313965)
@@ -5,7 +5,7 @@
pkgname=gens
pkgver=2.15.5
-pkgrel=10
+pkgrel=11
pkgdesc='A Sega Genesis / Sega CD / Sega 32X emulator'
arch=('x86_64')
url='http://gens.sourceforge.net'
@@ -17,35 +17,35 @@
'lib32-libpulse: Sound support for PulseAudio')
makedepends=('gendesk' 'imagemagick' 'nasm')
options=('!buildflags')
-source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+source=("https://downloads.sourceforge.net/gens/gens-${pkgver}.tar.gz")
sha256sums=('51910d3056da9ffbb2c01cfec064998c9a4cad0cb379d703ec1b93c83dba305a')
prepare() {
- gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name='Gens' --exec='gens'
+ gendesk -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --name='Gens' --exec='gens'
}
build() {
- cd ${pkgname}-${pkgver}
+ cd gens-${pkgver}
- if [[ $CARCH == "x86_64" ]]; then
- export CC='gcc -m32'
- export CXX='g++ -m32'
- export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
- fi
+ export CC='gcc -m32'
+ export CXX='g++ -m32'
+ export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+ export LDFLAGS='-Wl,-z,noexecstack'
- export LDFLAGS='-Wl,-z,noexecstack'
- ./configure --host='i686-unknown-linux-gnu' --prefix='/usr'
+ ./configure \
+ --host='i686-unknown-linux-gnu' \
+ --prefix='/usr'
make
}
package() {
- cd ${pkgname}-${pkgver}
+ cd gens-${pkgver}
make DESTDIR="${pkgdir}" install
install -dm 755 "${pkgdir}"/usr/share/{applications,pixmaps}
- install -m 644 {..,"${pkgdir}"/usr/share/applications}/${pkgname}.desktop
- convert "${pkgdir}"/usr/share/{gens/Gens2.ico[1],pixmaps/${pkgname}.png}
+ install -m 644 ../gens.desktop -t "${pkgdir}"/usr/share/applications/
+ convert "${pkgdir}"/usr/share/{gens/Gens2.ico[1],pixmaps/gens.png}
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list