Restore some previously-removed applications and rebuild them against lua52 or lua51

This commit is contained in:
Adrian Chaves (Gallaecio) 2016-09-22 19:18:26 +02:00
parent 0c8b4e1b23
commit a1226f651a
10 changed files with 266 additions and 0 deletions

37
elinks/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
# Forked from https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/elinks&id=607b2e6f84a6a558d0747b636dff7799b5a470c1
pkgname=elinks
pkgver=0.13
_commit="a3751107033599b835eaafa61177c8d4dda4b7ef"
pkgrel=4
pkgdesc="An advanced and well-established feature-rich text mode web browser."
arch=("x86_64")
url="http://elinks.or.cz"
license=('GPL')
depends=('bzip2' 'expat>=2.0' 'gpm>=1.20.4' 'openssl' 'lua51' 'libidn' 'js185'
'gc' 'tre' 'desktop-file-utils')
makedepends=('git')
install=elinks.install
source=("git+http://elinks.cz/elinks.git#commit=$_commit")
md5sums=('SKIP')
build() {
cd elinks
sed -i 's/Terminal=1/Terminal=true/' "contrib/debian/$pkgname.desktop"
[ -x configure ] || sh autogen.sh
./configure --prefix=/usr --mandir=/usr/share/man \
--sysconfdir=/etc \
--disable-smb --without-x --enable-cgi \
--enable-leds --enable-256-colors --enable-html-highlight \
--with-zlib
make
}
package() {
cd elinks
make DESTDIR="$pkgdir" install
rm -f "$pkgdir/usr/share/locale/locale.alias"
install -D -m644 "contrib/debian/$pkgname.desktop" \
"$pkgdir/usr/share/applications/$pkgname.desktop"
}

12
elinks/elinks.install Normal file
View File

@ -0,0 +1,12 @@
post_install() {
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

52
hedgewars/PKGBUILD Normal file
View File

@ -0,0 +1,52 @@
pkgname=hedgewars
pkgver=0.9.22
pkgrel=3
pkgdesc="Free turn based strategy game similar to Worms"
arch=('x86_64')
url="http://hedgewars.org"
license=('GPL2')
depends=('ffmpeg' 'lua51' 'qt' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'ttf-dejavu' 'freeglut' 'physfs')
makedepends=('fpc' 'cmake'
# haskell specific
'ghc'
'haskell-network'
'haskell-bytestring-show'
'haskell-utf8-string'
#'haskell-dataenc'
'haskell-hslogger'
'haskell-vector'
'haskell-entropy'
'haskell-sha'
'haskell-zlib'
'haskell-random')
categories=('games')
source=("http://download.gna.org/$pkgname/$pkgname-src-${pkgver}.tar.bz2"
hedgewars.png)
md5sums=('3718947ea69f57a76a3511678fb8173b'
'eeb14d50df39063549ac5eca9dbc65d1')
prepare() {
cd $pkgname-src-*
sed -i 's|instance NFData (Chan a)$|instance NFData (Chan a) where rnf x = seq x ()|' gameServer/CoreTypes.hs
}
build() {
cd $srcdir/$pkgname-src-*
mkdir -p build && cd build
#Don't know why ld can't link to haskell-sha correctly,disable it.
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE="Release" \
-DDATA_INSTALL_DIR=/usr/share/hedgewars \
-DNOSERVER=1 \
..
make
}
package() {
cd $srcdir/$pkgname-src-*/build
make DESTDIR=$pkgdir install
install -D -m644 $srcdir/hedgewars-src-*/Fonts_LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/Fonts_LICENSE.txt
install -D -m644 $srcdir/hedgewars.png $pkgdir/usr/share/pixmaps/hedgewars.png
install -D -m644 $srcdir/hedgewars-src-*/share/hedgewars/Data/misc/hedgewars.desktop $pkgdir/usr/share/applications/hedgewars.desktop
}

BIN
hedgewars/hedgewars.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

53
widelands/PKGBUILD Normal file
View File

@ -0,0 +1,53 @@
# Maintainer: Manuel UtG <utg[dot]chakra.linux[at]gmail[dot]com>
pkgname=widelands
pkgver=18
_realver=build${pkgver}
pkgrel=7
pkgdesc="A realtime strategy game with emphasis on economy and transport."
arch=('x86_64')
url="http://widelands.org/"
license=('GPL')
depends=('boost-libs' 'ggz-client-libs' 'glew' 'lua51' 'python2' 'sdl_gfx' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
makedepends=('boost' 'cmake' 'mesa')
categories=('games')
source=("https://launchpad.net/widelands/${_realver}/build-${pkgver}/+download/$pkgname-$_realver-src.tar.bz2"
$pkgname.desktop
$pkgname.png)
md5sums=('01efe8db8cd25ffeb4f82b8b4ab6652e'
'86950190758e1aeaec8fe742440e8ab5'
'3dfda7e9ca76ca00dd98d745d0ceb328')
build() {
cd $srcdir/$pkgname-$_realver-src
sed -i "1 i #include <unistd.h>" src/main.cc
mkdir -p build/compile && cd build/compile
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWL_INSTALL_PREFIX=/usr \
-DWL_INSTALL_DATADIR=share/$pkgname \
-DWL_INSTALL_BINDIR=bin \
../..
make
}
package() {
cd $srcdir/$pkgname-$_realver-src/build/compile
make DESTDIR="$pkgdir" install
# Install bin, icon and desktop file
#install -Dm 755 src/$pkgname $pkgdir/usr/share/$pkgname/$pkgname
#install -Dm 755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
install -Dm644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
# #!/bin/sh
# cd /usr/share/widelands
# ./widelands $*
}

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Widelands
GenericName=Widelands
Comment=Realtime strategy game
Comment[gl]=Xogo de estratexia en tempo real.
Icon=widelands
Exec=widelands
Type=Application
Categories=Game;StrategyGame;

BIN
widelands/widelands.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

74
wireshark/PKGBUILD Normal file
View File

@ -0,0 +1,74 @@
pkgname=wireshark
pkgver=2.2.0
pkgrel=3
pkgdesc='A free network protocol analyzer for Unix/Linux and Windows'
arch=('x86_64')
license=('GPL2')
depends=('libpcap' 'libcap' 'krb5' 'glib2' 'desktop-file-utils' 'hicolor-icon-theme'
'lua52' 'libgcrypt' 'qt5-base' 'qt5-multimedia' 'harfbuzz' 'portaudio' 'bash' 'gnutls')
makedepends=('bison' 'flex' 'qt5-tools' 'python2')
url='http://www.wireshark.org/'
screenshot='https://blog.wireshark.org/wp-content/uploads/2015/11/Main-window-2.0.0rc2.png'
install=${pkgname}.install
source=(http://www.wireshark.org/download/src/${pkgname}-${pkgver}.tar.bz2)
sha256sums=('a6847e741efcba6cb9d92d464d4219917bee3ad0b8f5b0f80d4388ad2f3f1104')
prepare() {
cd ${pkgname}-${pkgver}
sed -i 's/Exec=wireshark/Exec=wireshark-qt/g' wireshark.desktop
}
build() {
cd ${pkgname}-${pkgver}
./autogen.sh
./configure \
--prefix=/usr \
--with-qt=5 \
--with-ssl \
--with-pcap \
--with-libcap \
--with-zlib \
--with-lua \
--with-krb5 \
--with-portaudio \
--with-gtk2=no \
--with-gtk3=no
make all
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
#wireshark uid group is 150
chgrp 150 "${pkgdir}/usr/bin/dumpcap"
chmod 754 "${pkgdir}/usr/bin/dumpcap"
#rm "${pkgdir}/usr/bin/wireshark"
# Headers
install -dm755 ${pkgdir}/usr/include/${pkgname}/{epan/{crypt,dfilter,dissectors,ftypes,wmem},wiretap,wsutil}
install -m644 cfile.h config.h file.h register.h ws_diag_control.h ws_symbol_export.h "${pkgdir}/usr/include/${pkgname}"
for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes epan/wmem wiretap wsutil; do
install -m644 ${d}/*.h ${pkgdir}/usr/include/${pkgname}/${d}
done
for d in 16 32 48; do
install -Dm644 image/hi${d}-app-wireshark.png \
"${pkgdir}/usr/share/icons/hicolor/${d}x${d}/apps/wireshark.png"
done
for d in 16 24 32 48 64 128 256 ; do
install -Dm644 image/WiresharkDoc-${d}.png \
"${pkgdir}/usr/share/icons/hicolor/${d}x${d}/mimetypes/application-vnd.tcpdump.pcap.png"
done
install -Dm644 wireshark.desktop "${pkgdir}/usr/share/applications/wireshark.desktop"
sed -i s!wireshark-qt!wireshark! \
${pkgdir}/usr/share/applications/wireshark.desktop
rm "${pkgdir}/usr/share/applications/wireshark-gtk.desktop"
}

View File

@ -0,0 +1,29 @@
update_cache() {
update-desktop-database -q
}
post_install() {
update_cache
/usr/bin/getent group wireshark >/dev/null 2>&1 || usr/sbin/groupadd -g 150 wireshark &>/dev/null
/usr/sbin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap
echo "NOTE: To run wireshark as normal user you have to add yourself into wireshark group"
}
post_upgrade() {
update_cache
/usr/bin/getent group wireshark >/dev/null 2>&1 || usr/sbin/groupadd -g 150 wireshark &>/dev/null
/usr/sbin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap
}
post_remove() {
update_cache
if /usr/bin/getent group wireshark >/dev/null 2>&1; then
/usr/sbin/groupdel wireshark
fi
}

BIN
wireshark/wireshark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB