summaryrefslogtreecommitdiff
path: root/testing/pastebinc/APKBUILD
blob: bf6a53353da7f975ca2ddc4f168ff184df002d34 (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
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pastebinc
pkgver=0.9.1
pkgrel=1
pkgdesc="utility to pipe data into a paste on pastebin.com or a similar site"
url="https://github.com/jthomerson/pastebinc"
arch="all"
license="ASL 2.0"
depends=
depends_dev=
makedepends="wget glib-dev curl-dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/jthomerson/pastebinc/archive/RELEASE_$pkgver.tar.gz
	buildfix.patch"
builddir="$srcdir/pastebinc-RELEASE_$pkgver"

makeparams="VERSION=$pkgver-$pkgrel CONFDIR=/etc/pastebinc prefix=/usr"

build() {
	cd "$builddir"
	make $makeparams clean
	make $makeparams
}

check() {
	cd "$builddir"
	./pastebinc -h || test $? -eq 1
}

package() {
	cd "$builddir"
	make $makeparams DESTDIR="$pkgdir" install
}

sha512sums="84f8f2879572a9c6ee5c990b7b94e2b311141bf555a4ca4afd39d24211b267b7bc87e67ecf64632d27ac6ac5901b3dd9e7bb76dfb33276c81a9931009244bc29  pastebinc-0.9.1.tar.gz
67f2e6a2a7e04d23437f12396320a8eec73d78c5ede603e92ea3afa5b9be003c9c082f03c680714fe54da35584fb2e653ca25a9167b86197ea8439aeac3c5779  buildfix.patch"