aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pastebinc/APKBUILD
blob: d9123bf203cc8a2ba4d0560806fe2182e79bd704 (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
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
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"
_builddir="$srcdir/pastebinc-RELEASE_$pkgver"

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

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"
	make $makeparams clean || return 1
	make $makeparams || return 1
}

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

md5sums="761446cc029b61db0870d89e97a393de  pastebinc-0.9.1.tar.gz"
sha256sums="ea262fd31a2ce7952cfbe201bf990c16c537d3fe3af5b3d8e97d5c31ebfd7e07  pastebinc-0.9.1.tar.gz"
sha512sums="84f8f2879572a9c6ee5c990b7b94e2b311141bf555a4ca4afd39d24211b267b7bc87e67ecf64632d27ac6ac5901b3dd9e7bb76dfb33276c81a9931009244bc29  pastebinc-0.9.1.tar.gz"