summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 51f93b41e33fa95dac0f1b35468ffa018105469a (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
# Maintainer: Simon D├ęsaulniers <rostydela@gmail.com>
pkgname='dpaste'
pkgver=20161119
pkgrel=1
pkgdesc="A simple pastebin for light values (max 64KB) using OpenDHT distributed hash table."
arch=('i686' 'x86_64')
license=('GPL3')
url='https://github.com/sim590/dpaste'
source=('git://github.com/sim590/dpaste')
makedepends=('opendht-git')
makedepends_x86_64=('gnutls')
makedepends_i686=('lib32-gnutls')
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/dpaste"
  git log -1 --format="%cd" --date=short | sed "s|-||g"
}

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

package() {
  cd "${srcdir}/dpaste"
  install -Dpv dpaste ${pkgdir}/usr/bin/dpaste
}
# vim: ts=2 sw=2 et: