mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Rewrite PKGBUILD; Add LICENSE and nvchecker support
This commit is contained in:
parent
fd71bb6edd
commit
714c82f3c6
6 changed files with 93 additions and 46 deletions
22
.SRCINFO
22
.SRCINFO
|
|
@ -1,16 +1,18 @@
|
|||
pkgbase = perl-file-dircompare
|
||||
pkgdesc = Perl module to compare two directories using
|
||||
pkgdesc = Perl module to compare two directories using callbacks
|
||||
pkgver = 0.7
|
||||
pkgrel = 1
|
||||
url = https://metacpan.org/release/File-DirCompare
|
||||
pkgrel = 2
|
||||
url = https://metacpan.org/dist/File-DirCompare
|
||||
arch = any
|
||||
license = PerlArtistic
|
||||
license = GPL
|
||||
depends = perl>=0
|
||||
license = Artistic-1.0-Perl OR GPL-1.0-or-later
|
||||
checkdepends = perl-pathtools
|
||||
checkdepends = perl-test-simple
|
||||
makedepends = perl-extutils-makemaker
|
||||
depends = perl
|
||||
depends = perl-carp
|
||||
depends = perl-pathtools
|
||||
options = !emptydirs
|
||||
source = http://search.cpan.org/CPAN/authors/id/G/GA/GAVINC/File-DirCompare-0.7.tar.gz
|
||||
md5sums = 1b83e9653811d036cc0f97584e0aff9e
|
||||
sha512sums = f929296b580aed630c1fa9ce177e835fc1110ec06c9fa3994f66e6dde4a7f253e80237dcafbfda1268bcb4e6abbca6147cc2e5a1317b1a1a3009086033463bc8
|
||||
source = https://cpan.metacpan.org/authors/id/G/GA/GAVINC/File-DirCompare-0.7.tar.gz
|
||||
sha256sums = b60e4d5dabc630fcfdcdf6f31fdcb6d277d3fd5375f02852eb4b51795a0b105b
|
||||
|
||||
pkgname = perl-file-dircompare
|
||||
|
||||
|
|
|
|||
3
.nvchecker.toml
Normal file
3
.nvchecker.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[perl-file-dircompare]
|
||||
source = "cpan"
|
||||
cpan = "File-DirCompare"
|
||||
12
LICENSE
Normal file
12
LICENSE
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Copyright Arch Linux Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
|
||||
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
|
||||
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
|
||||
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
||||
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
1
LICENSES/0BSD.txt
Symbolic link
1
LICENSES/0BSD.txt
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../LICENSE
|
||||
76
PKGBUILD
76
PKGBUILD
|
|
@ -1,49 +1,53 @@
|
|||
# Contributor: Anonymous
|
||||
# Generator : CPANPLUS::Dist::Arch 1.32
|
||||
# Maintainer: ryoskzypu <ryoskzypu@proton.me>
|
||||
# Contributor: Daniel Maurice Davis <daniel.maurice.davis@gmail.com>
|
||||
|
||||
_dist='File-DirCompare'
|
||||
pkgname='perl-file-dircompare'
|
||||
pkgver='0.7'
|
||||
pkgrel='1'
|
||||
pkgdesc="Perl module to compare two directories using"
|
||||
pkgver=0.7
|
||||
pkgrel=2
|
||||
pkgdesc='Perl module to compare two directories using callbacks'
|
||||
arch=('any')
|
||||
license=('PerlArtistic' 'GPL')
|
||||
url="https://metacpan.org/dist/$_dist"
|
||||
license=('Artistic-1.0-Perl OR GPL-1.0-or-later')
|
||||
depends=(
|
||||
'perl'
|
||||
'perl-carp'
|
||||
'perl-pathtools'
|
||||
)
|
||||
makedepends=('perl-extutils-makemaker')
|
||||
checkdepends=(
|
||||
'perl-pathtools'
|
||||
'perl-test-simple'
|
||||
)
|
||||
options=('!emptydirs')
|
||||
depends=('perl>=0')
|
||||
makedepends=()
|
||||
url='https://metacpan.org/release/File-DirCompare'
|
||||
source=('http://search.cpan.org/CPAN/authors/id/G/GA/GAVINC/File-DirCompare-0.7.tar.gz')
|
||||
md5sums=('1b83e9653811d036cc0f97584e0aff9e')
|
||||
sha512sums=('f929296b580aed630c1fa9ce177e835fc1110ec06c9fa3994f66e6dde4a7f253e80237dcafbfda1268bcb4e6abbca6147cc2e5a1317b1a1a3009086033463bc8')
|
||||
_distdir="File-DirCompare-0.7"
|
||||
source=("https://cpan.metacpan.org/authors/id/G/GA/GAVINC/$_dist-$pkgver.tar.gz")
|
||||
sha256sums=('b60e4d5dabc630fcfdcdf6f31fdcb6d277d3fd5375f02852eb4b51795a0b105b')
|
||||
|
||||
build() {
|
||||
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
|
||||
PERL_AUTOINSTALL=--skipdeps \
|
||||
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
|
||||
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
|
||||
MODULEBUILDRC=/dev/null
|
||||
build()
|
||||
{
|
||||
cd $_dist-$pkgver
|
||||
|
||||
cd "$srcdir/$_distdir"
|
||||
/usr/bin/perl Makefile.PL
|
||||
unset PERL_MM_OPT PERL5LIB PERL_LOCAL_LIB_ROOT
|
||||
export PERL_MM_USE_DEFAULT=1
|
||||
|
||||
/usr/bin/perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
make
|
||||
)
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/$_distdir"
|
||||
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
|
||||
check()
|
||||
{
|
||||
cd $_dist-$pkgver
|
||||
|
||||
unset PERL5LIB PERL_LOCAL_LIB_ROOT
|
||||
|
||||
make test
|
||||
)
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_distdir"
|
||||
make install
|
||||
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
|
||||
}
|
||||
package()
|
||||
{
|
||||
cd $_dist-$pkgver
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-basic-offset: 2
|
||||
# End:
|
||||
# vim:set ts=2 sw=2 et:
|
||||
unset PERL5LIB PERL_LOCAL_LIB_ROOT
|
||||
|
||||
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
|
||||
}
|
||||
|
|
|
|||
25
REUSE.toml
Normal file
25
REUSE.toml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
version = 1
|
||||
|
||||
[[annotations]]
|
||||
path = [
|
||||
"PKGBUILD",
|
||||
"README.md",
|
||||
"keys/**",
|
||||
".SRCINFO",
|
||||
".gitignore",
|
||||
".nvchecker.toml",
|
||||
"*.install",
|
||||
"*.sysusers",
|
||||
"*sysusers.conf",
|
||||
"*.tmpfiles",
|
||||
"*tmpfiles.conf",
|
||||
"*.logrotate",
|
||||
"*.pam",
|
||||
"*.service",
|
||||
"*.socket",
|
||||
"*.timer",
|
||||
"*.desktop",
|
||||
"*.hook",
|
||||
]
|
||||
SPDX-FileCopyrightText = "Arch Linux contributors"
|
||||
SPDX-License-Identifier = "0BSD"
|
||||
Loading…
Add table
Reference in a new issue