diff options
author | Uncle Hunto | 2016-04-06 17:00:37 -0700 |
---|---|---|
committer | Uncle Hunto | 2016-04-06 17:00:37 -0700 |
commit | aed902bb2d57ba3fec29b9543168ecab78a588d2 (patch) | |
tree | e2b1d3e63079768744ba47c506f2aaf4ada73320 | |
download | aur-aed902bb2d57ba3fec29b9543168ecab78a588d2.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 38 | ||||
-rw-r--r-- | PKGBUILD | 56 | ||||
-rw-r--r-- | peazip.install | 21 |
3 files changed, 115 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..12d8d7d15f2d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,38 @@ +# Generated by mksrcinfo v8 +# Wed Apr 6 23:55:11 UTC 2016 +pkgbase = peazip-gtk2-build + pkgdesc = Free GTK2 cross-platform file archiver (compiles from source) + pkgver = 6.0.0 + pkgrel = 1 + url = http://peazip.org + install = peazip.install + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = lazarus-gtk2 + makedepends = icoutils + depends = gtk2 + depends = desktop-file-utils + depends = balz + depends = lpaq + depends = paq8o + depends = p7zip + depends = upx + depends = zpaq + optdepends = quad + optdepends = unace + provides = peazip + conflicts = peazip + conflicts = peazip-gtk2 + conflicts = peazip-qt + conflicts = peazip-qt-build + conflicts = peazip-qt-opensuse + source = https://github.com/giorgiotani/PeaZip/releases/download/6.0.0/peazip-6.0.0.src.zip + source = http://www.peazip.org/downloads/additional/peazip_optional_formats_plugin-1.LINUX.INST.tar.gz + sha256sums = d585c79c632eac43edbfb133a0b59767424d137f3db75c55d49a793664af7bf2 + sha256sums = 7f3fc1ea200d482500360eadda9298c4d5900ca822d21b5a0e11ff9de4d499ff + sha512sums = bf781f3644432c4f89f606c1eb55a42439f0b5731f955b76a7f5fdaad583054fe3caf1c44a1fa52a283ac06f80279e1a1e675484860ec9c434957acc83a14bd4 + sha512sums = 8b308510a2c81ad2704cef19ed3fb2baf1dde0e123cf3e4c96e5e42a330e23002f3443c9fce009120492afc82b0ab063344c8029fe6fe851a4bea4814bacdaa8 + +pkgname = peazip-gtk2-build + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5b3901aa30ca --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Uncle Hunto <unclehunto äτ ÝãΗ00 Ð0τ ÇÖΜ> +# Contributor: hagabaka + +pkgname='peazip-gtk2-build' +pkgver=6.0.0 +pkgrel=1 +pkgdesc='Free GTK2 cross-platform file archiver (compiles from source)' +license=('GPL3') +url='http://peazip.org' +arch=('i686' 'x86_64') +depends=( 'gtk2' 'desktop-file-utils' 'balz' 'lpaq' 'paq8o' 'p7zip' 'upx' 'zpaq') +optdepends=('quad' 'unace') +makedepends=('lazarus-gtk2' 'icoutils') +provides=('peazip') +conflicts=('peazip' 'peazip-gtk2' 'peazip-qt' 'peazip-qt-build' 'peazip-qt-opensuse') +install=peazip.install +source=("https://github.com/giorgiotani/PeaZip/releases/download/$pkgver/peazip-$pkgver.src.zip" + "http://www.peazip.org/downloads/additional/peazip_optional_formats_plugin-1.LINUX.INST.tar.gz") +sha256sums=('d585c79c632eac43edbfb133a0b59767424d137f3db75c55d49a793664af7bf2' + '7f3fc1ea200d482500360eadda9298c4d5900ca822d21b5a0e11ff9de4d499ff') +sha512sums=('bf781f3644432c4f89f606c1eb55a42439f0b5731f955b76a7f5fdaad583054fe3caf1c44a1fa52a283ac06f80279e1a1e675484860ec9c434957acc83a14bd4' + '8b308510a2c81ad2704cef19ed3fb2baf1dde0e123cf3e4c96e5e42a330e23002f3443c9fce009120492afc82b0ab063344c8029fe6fe851a4bea4814bacdaa8') + +build() { + cp -Rf "$srcdir/res" "$srcdir/peazip-$pkgver.src" + cd "$srcdir/peazip-$pkgver.src" + lazbuild --widgetset=gtk2 --build-all project_pea.lpi && [ -f pea ] + lazbuild --widgetset=gtk2 --build-all project_gwrap.lpi && [ -f pealauncher ] + lazbuild --widgetset=gtk2 --build-all project_peach.lpi && [ -f peazip ] + icotool -x -w 256 "./res/icons/PeaZip.ico" -o "$srcdir/peazip-$pkgver.src/peazip.png" +} + +package() { + _resdir="$pkgdir/opt/peazip/res" + cd "$srcdir/peazip-$pkgver.src/res" + install -Dm755 "../peazip" "$pkgdir/opt/peazip/peazip" + install -Dm755 "../pea" "$_resdir/pea" + install -Dm755 "../pealauncher" "$_resdir/pealauncher" + install -Dm644 "../peazip.png" "$pkgdir/usr/share/pixmaps/peazip.png" + ## Install res directory + for i in arc/{arc,*.sfx}; do install -Dm755 $i "$_resdir"/$i; done + for i in *.txt lang/* themes/{*-embedded/*,*.7z} arc/arc.{ini,groups} + do install -Dm644 $i "$_resdir"/$i; done + ln -sf -T /usr/lib/p7zip $_resdir/7z + for i in quad/{balz,quad} unace/unace upx/upx lpaq/lpaq8 paq/paq8o zpaq/zpaq; do + install -d "$_resdir"/$(dirname $i)/ + ln -sf /usr/bin/$(basename $i) "$_resdir"/$i; + done + install -d "$pkgdir"/usr/bin/ + for i in /opt/peazip/{peazip,res/pea,res/pealauncher}; do + ln -sf $i "$pkgdir"/usr/bin/$(basename $i) + done + ## + desktop-file-install --dir="$pkgdir/usr/share/applications/" --set-icon="peazip"\ + --remove-key="Name[en_US]" "$srcdir/peazip-$pkgver.src/FreeDesktop_integration/peazip.desktop" +} diff --git a/peazip.install b/peazip.install new file mode 100644 index 000000000000..5576d72ee485 --- /dev/null +++ b/peazip.install @@ -0,0 +1,21 @@ +post_install() { + ln -sf "/opt/peazip/peazip" "/usr/bin/peazip" + update-desktop-database -q +} + +post_package() { + post_install +} + +post_upgrade() { + post_install +} + +postmove() { + post_install +} + +post_remove() { + rm -f /usr/bin/peazip + update-desktop-database -q +} |