aboutsummaryrefslogtreecommitdiffstats
path: root/testing/autocutsel/APKBUILD
blob: cfc7a8374cee0177ab0a5d381c8bee3127dac29e (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
# Contributor: Steeve Chailloux <steeve@chaahk.com>
# Maintainer: Steeve Chailloux <steeve@chaahk.com>
pkgname=autocutsel
pkgver=0.10.0
pkgrel=0
pkgdesc="automated xcutsel"
url="http://www.nongnu.org/autocutsel/"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev libx11-dev libxaw-dev"
subpackages=""
source="https://github.com/sigmike/autocutsel/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"

_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 --mandir=/usr/share/man || return 1
	make || return 1
}

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

md5sums="7d5b96e5f7b79b883d8350f104043366  autocutsel-0.10.0.tar.gz"
sha256sums="a2376330aa1a65f36621595a5a4eb5c2cabc16854b69d66c285f11f89bd05e3f  autocutsel-0.10.0.tar.gz"
sha512sums="2d9b7114fde67ee217ceee673e32b407eef5b266a9d457a83b35d1c6227e5873cc7928aa10f7d84ce5e8c78d4940ee29985696f49b4015269584f1559f6b6d1d  autocutsel-0.10.0.tar.gz"