summaryrefslogtreecommitdiffstats
path: root/main/xarchiver/APKBUILD
blob: 6fd284c89b082599f8480ea6b1fd41161fbf3a63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xarchiver
pkgver=0.5.3
pkgrel=0
pkgdesc="GTK+ frontend to various command line archivers"
url="http://xarchiver.xfce.org/"
arch="all"
license="GPL"
depends="desktop-file-utils hicolor-icon-theme tar"
makedepends="intltool gtk+-dev"
install=
subpackages="$pkgname-doc $pkgname-lang"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
	xarchiver-0.5.2-stack-smash.patch"

prepare() {
	cd "$srcdir/xarchiver-$pkgver"
	update_config_sub || return 1
	patch -p1 -i "$srcdir"/xarchiver-0.5.2-stack-smash.patch
}

build() {
	cd "$srcdir/xarchiver-$pkgver"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexecdir=/usr/lib/xfce4 \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/xarchiver-$pkgver"
	# work around issue when 'iconv' is missing
	cp xarchiver.desktop.in xarchiver.desktop
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="fd390bbd2df76a5f8a007bdeae82d4aa  xarchiver-0.5.3.tar.bz2
74cdf6a77e91ac7b02270002c582cea1  xarchiver-0.5.2-stack-smash.patch"
sha256sums="c5899cb495e83a63f89b5eea002d2dd1c691db8d7b6343b3c182ce6e00c16d81  xarchiver-0.5.3.tar.bz2
2032d3a7cdafc23b2577a6798af5ca93a913ff2a10ac4cf5adaf176433e9e424  xarchiver-0.5.2-stack-smash.patch"
sha512sums="b8719a1b7f71c999952390fca999a66baf709e1058f307b40a6b0500d5d268f3923bded742b2fbc0d8c760c43f33b7d5d4971f36a6dc4659310ad41ca7a045d6  xarchiver-0.5.3.tar.bz2
dc60b4c8425435eb94e0f6e683ed307ab4068afac7ad62fcdf28ef1b7f0396eeea556db22614d46667db02c261648f7b34f99e2514fc37fe3f66aa59d70689b0  xarchiver-0.5.2-stack-smash.patch"