summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-22 03:53:45 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-22 03:53:45 -0500
commitdf00e11d3b319a75c704658e22ed8b415401b0a1 (patch)
treeb1501b437a380d45c6da91dc0fd7e10c9afdf7bd /user
parente086770b6de451c93027bded748cba7e1041d507 (diff)
downloadpackages-df00e11d3b319a75c704658e22ed8b415401b0a1.tar.gz
packages-df00e11d3b319a75c704658e22ed8b415401b0a1.tar.bz2
packages-df00e11d3b319a75c704658e22ed8b415401b0a1.tar.xz
packages-df00e11d3b319a75c704658e22ed8b415401b0a1.zip
user/perl-crypt-rijndael: assign Perl team, bump to 1.13, fix metadata
Diffstat (limited to 'user')
-rw-r--r--user/perl-crypt-rijndael/APKBUILD43
-rw-r--r--user/perl-crypt-rijndael/use-stdint_h.patch18
2 files changed, 61 insertions, 0 deletions
diff --git a/user/perl-crypt-rijndael/APKBUILD b/user/perl-crypt-rijndael/APKBUILD
new file mode 100644
index 000000000..5b9e1283a
--- /dev/null
+++ b/user/perl-crypt-rijndael/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-crypt-rijndael
+_pkgreal=Crypt-Rijndael
+pkgver=1.13
+pkgrel=0
+pkgdesc="Crypt::CBC compliant Rijndael encryption module"
+url="https://metacpan.org/release/Crypt-Rijndael"
+arch="all"
+license="LGPL-3.0+"
+cpandepends="perl-test-manifest"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="https://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz
+ use-stdint_h.patch"
+
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="46eea4eb6568d9bb70685314c6a29214552787c8cf138adb77271d07b85c16d83ee3faa53e6c3b7d0abb5cb735827407e970f954ae93123dfeaebb5fb34f1329 Crypt-Rijndael-1.13.tar.gz
+4f96e3f326c48bdca94aa721468f6c927a6af39ab9683bc69058a9330d733c96e656883890cf9f2c4588173784d248238dec82a49e8261c0cd9e1d794764d97e use-stdint_h.patch"
diff --git a/user/perl-crypt-rijndael/use-stdint_h.patch b/user/perl-crypt-rijndael/use-stdint_h.patch
new file mode 100644
index 000000000..76471bee9
--- /dev/null
+++ b/user/perl-crypt-rijndael/use-stdint_h.patch
@@ -0,0 +1,18 @@
+Only in Crypt-Rijndael-1.11: Rijndael.o
+Only in Crypt-Rijndael-1.11: _rijndael.o
+Only in Crypt-Rijndael-1.11: blib/arch/auto/Crypt/Rijndael/Rijndael.so
+Only in Crypt-Rijndael-1.11: blib/man3/Crypt::Rijndael.3
+--- Crypt-Rijndael-1.11.orig/rijndael.h
++++ Crypt-Rijndael-1.11/rijndael.h
+@@ -72,6 +72,11 @@
+ typedef u_char UINT8;
+ #endif
+
++#include <stdint.h>
++#define _CRYPT_RIJNDAEL_H_TYPES
++typedef uint32_t UINT32;
++typedef uint8_t UINT8;
++
+ /* I expect this to be the usual case */
+ #if ! defined(_CRYPT_RIJNDAEL_H_TYPES) && ( defined(_SYS_TYPES_H) || defined(_SYS_TYPES_H_) )
+ #define _CRYPT_RIJNDAEL_H_TYPES