aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/parcellite/APKBUILD
blob: 6d2f92a7e55e197903dfa1fa11c574478e2a44f4 (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
45
46
47
48
49
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=parcellite
pkgver=1.1.9
pkgrel=0
pkgdesc="A lightweight GTK+ clipboard manager"
url="http://parcellite.sourceforge.net"
arch="all"
license="GPL3"
depends=""
depends_dev="gtk+2.0-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-lang $pkgname-doc"
source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
	fix-crash.patch"

_builddir="$srcdir"/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="6c3b70165c2dee9341a81a2a8481e446  parcellite-1.1.9.tar.gz
f2cc1986e573d49c92ea3d81efd5d574  fix-crash.patch"
sha256sums="cba89585082eebbe848ac1c0023cc71a0184c0db24ebc5f8a21039e46d7f11d4  parcellite-1.1.9.tar.gz
8fe1e86958d371c9fa9474fe64b203ed483f636f3f98152237402ea84b2d2cbd  fix-crash.patch"
sha512sums="24721dbd4f049f65a40f4e4c6914344062d49dfb50e3cf6496c6f14d9aff02bef5b88d3a714e8176955c84b1324c9ca1f35b389e8033d1232dd3c802c40e32bf  parcellite-1.1.9.tar.gz
3cfbf5e22ff33d4c33696fb2a8e4c24b91ded0a36b30188e47f56532e315184eed69e66f3dc4dd9cd1dcaa1310d9343e79d19238012acf76fb36418766e007c9  fix-crash.patch"