2011-10-24 00:11:10 +08:00
|
|
|
pkgname=peazip
|
2015-06-15 19:35:01 +08:00
|
|
|
pkgver=5.6.1
|
2014-12-10 07:36:02 +08:00
|
|
|
pkgrel=1
|
2011-10-24 00:11:10 +08:00
|
|
|
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')
|
2011-10-24 00:11:10 +08:00
|
|
|
url="http://peazip.org/"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('zip' 'unzip' 'unrar' 'xz' 'p7zip' 'unarj' 'fpc-qtbindings')
|
2014-10-28 23:07:14 +08:00
|
|
|
makedepends=('lazarus')
|
2011-10-24 00:11:10 +08:00
|
|
|
optdepends=('rar: support for RAR archive compression')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('utils')
|
2014-10-29 00:39:28 +08:00
|
|
|
source=("http://sourceforge.net/projects/peazip/files/${pkgver}/${pkgname}-${pkgver}.src.zip"
|
|
|
|
'altconf.txt')
|
2015-06-15 19:35:01 +08:00
|
|
|
md5sums=('77762e72c674fed19b83e840aab4a865'
|
2014-10-29 00:39:28 +08:00
|
|
|
'8bc81e527370ae11c78511db5e2bbeb4')
|
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
|
|
|
}
|
2011-10-24 00:11:10 +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}
|
|
|
|
install -dm755 ${pkgdir}/${_datadir}
|
2014-10-28 23:07:14 +08:00
|
|
|
|
2014-10-29 00:39:28 +08:00
|
|
|
# Move language files and utilities
|
|
|
|
cp -rv res/themes ${pkgdir}/${_datadir}/res/
|
|
|
|
cp -rv res/lang ${pkgdir}/${_datadir}/res/
|
|
|
|
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/
|
|
|
|
|
2014-10-28 23:07:14 +08:00
|
|
|
# Move the Dolohin integration
|
|
|
|
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}
|
2011-10-24 00:11:10 +08:00
|
|
|
done
|
|
|
|
|
2014-10-28 23:07:14 +08:00
|
|
|
# Move mimetypes and icons
|
|
|
|
install -Dm755 peazip.desktop ${pkgdir}/usr/share/applications/peazip.desktop
|
|
|
|
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
|
2011-10-24 00:11:10 +08:00
|
|
|
}
|