OSDN Git Service

add PKGBUILD for Crypt-RC4
authorKojiro ONO <ono.kojiro@gmail.com>
Thu, 8 Dec 2016 12:22:04 +0000 (21:22 +0900)
committerKojiro ONO <ono.kojiro@gmail.com>
Thu, 8 Dec 2016 12:22:04 +0000 (21:22 +0900)
perl-Crypt-RC4/PKGBUILD [new file with mode: 0644]

diff --git a/perl-Crypt-RC4/PKGBUILD b/perl-Crypt-RC4/PKGBUILD
new file mode 100644 (file)
index 0000000..9ba03ec
--- /dev/null
@@ -0,0 +1,31 @@
+# Maintainer: kojiro ONO <ono.kojiro@gmail.com>
+
+_realname=Crypt-RC4
+pkgname=perl-${_realname}
+pkgver=2.02
+pkgrel=1
+groups=('perl-modules')
+pkgdesc="Perl implementation of the RC4 encryption algorithm"
+arch=('any')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl')
+options=('!emptydirs')
+source=("http://ftp.cpan.org/pub/CPAN/authors/id/S/SI/SIFUKURT/${_realname}-${pkgver}.tar.gz")
+sha256sums=('5ec4425c6bc22207889630be7350d99686e62a44c6136960110203cd594ae0ea')
+
+build() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make test
+}
+
+package() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
+}