summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae0d3347454aed95d54129b4bdec5e740eaf08cb (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
# Contibutor: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname=webdump
pkgname=webdump-git
pkgver=r51.a0118e6
pkgrel=1
pkgdesc='HTML to plain-text converter tool'
arch=('i686' 'pentium4' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url='https://www.codemadness.org/git/webdump/file/README.html'
license=('ISC')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git://git.codemadness.org/$_pkgname")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  make -C "$_pkgname"
}

package() {
  make DESTDIR="$pkgdir" PREFIX="/usr" MANPREFIX="/usr/share/man" -C "$_pkgname" install
  install -Dvm644 "$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}

# vim: ts=2 sw=2 et: