summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6055bf906b88b5494eb094a514d1839c98e5a90 (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
# Maintainer: Simon Désaulniers <sim.desaulniers@gmail.com>
pkgname='dpaste'
pkgver=0.4.1
epoch=1
pkgrel=1
pkgdesc="A simple pastebin for light values (max 64KB) using OpenDHT distributed hash table."
arch=('x86_64')
license=('GPL3')
url='https://github.com/sim590/dpaste'
source=("git+https://github.com/sim590/dpaste#tag=$pkgver")
depends=('gnutls' 'libb64' 'libcurlpp>=0.8.1' 'opendht' 'glibmm')
makedepends=('git' 'nlohmann-json' 'msgpack-cxx')
sha256sums=('SKIP')

build() {
  cd "${srcdir}/dpaste"
  ./autogen.sh
  ./configure --disable-debug
  make
}

package() {
  cd "${srcdir}/dpaste"
  _man_dest=${pkgdir}/usr/share/man/man1/dpaste.1
  install -Dpvm 644 doc/dpaste.1 ${_man_dest}
  gzip ${_man_dest}

  install -Dpv src/dpaste ${pkgdir}/usr/bin/dpaste
}
# vim: ts=2 sw=2 et: