diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 29 | ||||
-rw-r--r-- | newsup.install | 8 |
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7b68c54a4127 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = newsup-git + pkgdesc = NewsUP - A usenet binary uploader + pkgver = r443.b4ea158 + pkgrel = 1 + url = https://github.com/demanuel/NewsUP + install = newsup.install + arch = any + license = GPLv3 + depends = perl>=5.026 + depends = perl-io-socket-ssl>=2.020 + depends = perl-inline-c>=0.76 + depends = perl-config-tiny>=2.22 + provides = _pkgname + source = newsup-git::git+https://github.com/demanuel/NewsUP.git + md5sums = SKIP + +pkgname = newsup-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9aaed7320f2e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: David Santiago <demanuel@ymail.com> +pkgname=newsup-git +_pkgname=newsup +pkgrel=1 +pkgver=r443.b4ea158 +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') +source=("$pkgname::git+$url.git") +md5sums=('SKIP') +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)" +} diff --git a/newsup.install b/newsup.install new file mode 100644 index 000000000000..e3e275c35640 --- /dev/null +++ b/newsup.install @@ -0,0 +1,8 @@ +post_install() { + echo -e "NOTE:" + echo -e "\tThe newsup.conf file was installed in /etc/newsup/" + echo -e "\tIn order for newsup to find it, you need to copy it to ~/.config/" + echo -e "\tMake your changes on ~/.config/newsup.conf" + echo -e "" + echo -e "You can also use -configure /path/to/file to indicate a valid configuration file" +} |