diff options
Diffstat (limited to 'unmaintained/pastebinc/APKBUILD')
-rw-r--r-- | unmaintained/pastebinc/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/unmaintained/pastebinc/APKBUILD b/unmaintained/pastebinc/APKBUILD new file mode 100644 index 0000000000..d9123bf203 --- /dev/null +++ b/unmaintained/pastebinc/APKBUILD @@ -0,0 +1,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" |