#Packager: Dimitris Tzemos pkgname=vice pkgver=3.5 pkgrel=1dj source=("https://sourceforge.net/projects/vice-emu/files/releases/vice-$pkgver.tar.gz") "icons.tar.gz" "vice.desktop" "vice" "disable-fc-cache.patch" ) url="https://vice-emu.sourceforge.io" docs=("COPYING" "README" "NEWS" "FEEDBACK") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "vice (the Versatile Commodore Emulator)" "VICE is an emulator collection which emulates the C64, the C64-DTV," "the C128, the VIC20, practically all PET models, the PLUS4 and the" "CBM-II (aka C610/C510). An extra emulator is provided for C64 expanded" "with the CMD SuperCPU." "" "HomePage: https://vice-emu.sourceforge.io" ) build() { cd $startdir/src/$pkgname-$pkgver rm -rf src/lib/{liblame,libx264,libffmpeg} || return 1 patch -p1 -i "$startdir/src/disable-fc-cache.patch" || return 1 sed -i 's/lib64/lib/g' configure.ac autoreconf -fi CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --enable-x64 \ --enable-gnomeui \ --enable-ethernet \ --enable-fullscreen \ --enable-external-ffmpeg make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/bin cp $startdir/src/vice $startdir/pkg/usr/bin chmod a+x $startdir/pkg/usr/bin/vice mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/vice.desktop $startdir/pkg/usr/share/applications/ # Copy icons to the right place ICONSIZES="48 32 24 22 16" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; # Remove unwanted files rm -rf $startdir/pkg/usr/share/info/dir }