[arch-commits] Commit in public-inbox/trunk (PKGBUILD)
Morten Linderud
foxboron at gemini.archlinux.org
Sat Apr 30 12:00:22 UTC 2022
Date: Saturday, April 30, 2022 @ 12:00:21
Author: foxboron
Revision: 1191914
upgpkg: public-inbox 1.8.0-1: addpkg: public-inbox 1.8.0-1
Added:
public-inbox/trunk/PKGBUILD
----------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-04-30 12:00:21 UTC (rev 1191914)
@@ -0,0 +1,62 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contriburot: Nícolas F. R. A. Prado <n at nfraprado dot net>
+
+pkgbase=public-inbox
+pkgname=(lei perl-publicinbox)
+pkgver=1.8.0
+pkgrel=1
+pkgdesc='An "archives first" approach to mailing lists'
+arch=('any')
+url="https://public-inbox.org"
+license=('AGPL')
+depends=(perl perl-inline-c perl-dbd-sqlite perl-uri perl-search-xapian)
+makedepends=('git')
+source=("https://public-inbox.org/public-inbox.git/snapshot/public-inbox-${pkgver}.tar.gz")
+sha256sums=('95a24e38293935e7081967acbf80f7d1c2c67e28d01d591ea39e5e36a34acdec')
+
+# TODO(Foxboron): Add publicinbox, but perl-plack needs quite a few more packages
+# lei mirror doesn't work.
+
+build() {
+ cd "${pkgbase}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "${pkgbase}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+ #make check
+}
+
+package_perl-publicinbox() {
+ cd "${pkgbase}-${pkgver}"
+ pkgdesc='The perl library for public-inbox'
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ make INSTALLDIRS=vendor DESTDIR="$pkgdir/" install
+
+ rm -rf $pkgdir/usr/bin/vendor_perl \
+ $pkgdir/usr/share/man/*/public-inbox* \
+ $pkgdir/usr/share/man/*/lei*
+}
+
+package_lei() {
+ cd "${pkgbase}-${pkgver}"
+ depends=('perl-publicinbox')
+ pkgdesc='The "local email interface" from public-inbox'
+
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ make INSTALLDIRS=vendor DESTDIR="$pkgdir/" install
+
+ install -Dm644 contrib/completion/lei-completion.bash "$pkgdir/usr/share/bash-completion/completions/lei"
+
+ rm -rf $pkgdir/usr/bin/vendor_perl/public-inbox* \
+ $pkgdir/usr/share/perl5 \
+ $pkgdir/usr/lib/perl5 \
+ $pkgdir/usr/bin/site_perl/public-inbox* \
+ $pkgdir/usr/share/man/*/public-inbox* \
+ $pkgdir/usr/share/man/*/PublicInbox*
+}
More information about the arch-commits
mailing list