aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pastebinc/APKBUILD
blob: 65eaddbc9c9bc7550318e702b88bc46798898521 (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
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
pkgname=pastebinc
pkgver=0.9.1
pkgrel=0
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="saveas-https://github.com/jthomerson/pastebinc/tarball/RELEASE_0.9.1/$pkgname-$pkgver-$pkgrel.tar.gz"
_builddir="$srcdir/jthomerson-pastebinc-e16f22d"

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

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="68a1c51b2fa39ecb6fd29a14f2e9f591  pastebinc-0.9.1-0.tar.gz"