#Maintainer: Dimitris Tzemos pkgname=p7zip pkgver=17.05 pkgrel=1dj source=("https://github.com/p7zip-project/p7zip/archive/v$pkgver/p7zip-$pkgver.tar.gz") url=ttps://github.com/p7zip-project/p7zip slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "p7zip (a file archiver with the highest compression ratio)" "p7zip is a quick port of 7z.exe and 7za.exe (command line version of" "7zip, see www.7-zip.org) for Unix." "7-Zip is a file archiver with the highest compression ratio." "Since 4.10, p7zip (like 7-zip) supports little-endian and big-endian" "machines." ) build() { cd $startdir/src/${pkgname}-$pkgver make all3 \ OPTFLAGS="$SLKCFLAGS -std=gnu++14" \ DEST_HOME=/usr \ DEST_SHARE_DOC=/usr/doc/$pkgname-$pkgver \ DEST_SHARE=/usr/lib$LIBDIRSUFFIX/p7zip \ DEST_DIR=$PKG make install \ OPTFLAGS="$SLKCFLAGS" \ DEST_HOME=/usr \ DEST_SHARE_DOC=/usr/doc/$pkgname-$pkgver \ DEST_SHARE=/usr/lib$LIBDIRSUFFIX/p7zip \ DEST_DIR=$PKG # install gzip like wrapper install -m 0755 contrib/gzip-like_CLI_wrapper_for_7z/p7zip $PKG/usr/bin/ install -m 0644 contrib/gzip-like_CLI_wrapper_for_7z/man1/p7zip.1 $PKG/usr/man/man1/ # install midnight commander vfs add on mkdir -p $PKG/usr/share/mc/extfs/ install -m 755 contrib/VirtualFileSystemForMidnightCommander/u7z \ $PKG/usr/share/mc/extfs/ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done cp TODO $PKG/usr/doc/$pkgname-$pkgver cp contrib/gzip-like_CLI_wrapper_for_7z/README $PKG/usr/doc/$pkgname-$pkgver/README.p7zip }