summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b85052fedec17503e641bee4a6330af72c30e4c9 (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
# Maintainer: Simon D├ęsaulniers <sim.desaulniers@gmail.com>
pkgname='dpaste'
pkgver=0.4.0
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://github.com/sim590/dpaste#tag=0.4.0')
depends=('gnutls' 'libb64' 'libcurlpp>=0.8.1' 'opendht' 'glibmm')
makedepends=('git' 'nlohmann-json-git')
sha256sums=('SKIP')

prepare () {
  cd "${srcdir}/dpaste"
  git apply "${startdir}/include_dir.patch"
}

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: