summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33590729395d6c7991d8b5afc1b5fc6a48005936 (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
# Maintainer: David Santiago <demanuel@ymail.com>
pkgname=newsup-git
_pkgname=newsup
pkgrel=1
pkgver=r493.297f220
provides=(${_pkgname})
pkgdesc="NewsUP - A usenet binary uploader"
arch=('any')
url="https://github.com/demanuel/NewsUP"
license=('GPLv3')
depends=('perl>=5.026' 'perl-io-socket-ssl>=2.020' 'perl-inline-c>=0.76' 'perl-config-tiny>=2.22' 'perl-file-copy-recursive>=0.44')
source=("$pkgname::git+$url.git")
md5sums=('SKIP')
makedepends=('git')
install=newsup.install


package() {
	install -D $srcdir/$pkgname/bin/newsup.pl $pkgdir/usr/bin/vendor_perl/$_pkgname
	install -D -m644 $srcdir/$pkgname/conf/newsup.conf $pkgdir/etc/$_pkgname/newsup.conf
  install -D $srcdir/$pkgname/bin/newsup.pl $pkgdir/usr/bin/vendor_perl/$_pkgname
  mkdir -p $pkgdir/usr/share/perl5/vendor_perl/
  cp -R $srcdir/$pkgname/lib/NewsUP/ $pkgdir/usr/share/perl5/vendor_perl/
}

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