desktop/peazip/PKGBUILD

78 lines
2.7 KiB
Bash
Raw Normal View History

pkgname=peazip
2016-02-27 19:48:40 +08:00
pkgver=6.0.0
2015-10-29 07:49:58 +08:00
pkgrel=1
pkgdesc="Free, Open Source file and archive manager. Supports 7Z, ACE, ARC, CAB, ISO, PAQ, PEA, RAR, TAR, ZIP and many more archive formats."
2014-10-28 23:07:14 +08:00
arch=('x86_64')
url="http://peazip.org/"
license=('GPL')
2015-10-29 07:49:58 +08:00
depends=('zip' 'unzip' 'unrar' 'xz' 'p7zip' 'unarj' 'fpc-qtbindings' 'libxslt')
2014-10-28 23:07:14 +08:00
makedepends=('lazarus')
optdepends=('rar: support for RAR archive compression')
categories=('utils')
2015-07-23 06:13:50 +08:00
source=("https://github.com/giorgiotani/PeaZip/releases/download/${pkgver}/${pkgname}-${pkgver}.src.zip"
2015-09-01 05:24:59 +08:00
'altconf.txt'
'peazip.desktop')
2016-02-27 19:48:40 +08:00
sha256sums=('d585c79c632eac43edbfb133a0b59767424d137f3db75c55d49a793664af7bf2'
2015-10-29 07:49:58 +08:00
'366884105c00e88f2ce2315155479bd2c38ea2181e8a7431293ced87a39a9405'
'f921796732bd1f13d602056c9d6d2c6d0e2f416c27d3f60808b646672f6a9f40')
2014-10-28 23:07:14 +08:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}.src
2014-10-29 00:39:28 +08:00
for i in project_pea.lpi project_peach.lpi project_gwrap.lpi ; do
lazbuild -B --cpu=${arch} --verbose ${i} \
--lazarusdir=/usr/lib/lazarus \
--widgetset=qt
done
2014-10-28 23:07:14 +08:00
}
package() {
2014-10-29 00:39:28 +08:00
# Since the dev are lazy, we introduce several path for easier description
_srcdir=${srcdir}/${pkgname}-${pkgver}.src
_datadir=usr/share/${pkgname}
cd ${_srcdir}
2015-10-13 17:54:59 +08:00
install -dm755 ${pkgdir}/${_datadir}/res/{themes,lang}
2014-10-28 23:07:14 +08:00
2014-10-29 00:39:28 +08:00
# Move language files and utilities
2015-10-13 17:54:59 +08:00
cp -rv ${_srcdir}/res/{themes,lang} ${pkgdir}/usr/share/peazip/res
2014-10-29 00:39:28 +08:00
install -Dm644 ${srcdir}/altconf.txt ${pkgdir}/${_datadir}/res/altconf.txt
# Link tools
for i in 7z upx ; do
install -dm755 ${pkgdir}/${_datadir}/res/${i}
ln -s /usr/bin/${i} ${pkgdir}/${_datadir}/res/${i}/${i}
done
# Install binary to datadir/res
for i in pea pealauncher ; do
install -Dm755 ${i} ${pkgdir}/${_datadir}/res/${i}
done
# Install peazip to datadir because at start need to read res/altconf.txt
install -Dm755 peazip ${pkgdir}/${_datadir}/peazip
install -dm755 ${pkgdir}/usr/bin
ln -s /${_datadir}/peazip ${pkgdir}/usr/bin/peazip
2014-10-28 23:07:14 +08:00
2014-10-29 00:39:28 +08:00
# Preparing for desktop installation
cd ${_srcdir}/FreeDesktop_integration/
2015-10-13 17:54:59 +08:00
# Move the Dolphin integration
2014-10-28 23:07:14 +08:00
for i in peazipadd.desktop \
peazipext.desktop \
peazipextfolder.desktop \
peazipexthere.desktop \
peazipopen.desktop ; do
install -Dm755 kde4-dolphin/usr/share/kde4/services/ServiceMenus/${i} \
${pkgdir}/usr/share/kde4/services/ServiceMenus/${i}
done
2015-09-01 05:24:59 +08:00
#use own .desktop file to fix error name
install -D ../../peazip.desktop ${pkgdir}/usr/share/applications/peazip.desktop
# Move icons
2015-10-13 17:54:59 +08:00
install -Dm755 peazip.png ${pkgdir}/usr/share/icons/hicolor/256x256/apps/peazip.png
2014-10-29 00:46:23 +08:00
# License file
for r in copying.txt copying_we.txt legal.txt; do
install -Dm644 ${_srcdir}/${r} ${pkgdir}/usr/share/licenses/${pkgname}/${r}
done
}