summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryar2014-03-30 17:07:10 -0700
committeryar2014-03-30 17:07:10 -0700
commitdaec17a469ee52087e9dfdbb16513af3948701de (patch)
treec11155ecf8d1caa9f37586c8e12fff92629204eb
downloadaur-daec17a469ee52087e9dfdbb16513af3948701de.tar.gz
[perl-css-inliner] create new
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD31
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..6791921059f0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = perl-css-inliner
+ pkgdesc = Perl CSS::Inliner CPAN module
+ pkgver = 3936
+ pkgrel = 1
+ url = http://search.cpan.org/dist/CSS-Inliner/
+ arch = any
+ license = unknown
+ depends = perl
+ depends = perl-html-query
+ depends = perl-html-treebuilder-xpath
+ depends = perl-libwww
+ depends = perl-uri
+ options = !emptydirs
+ source = http://search.cpan.org/CPAN/authors/id/K/KA/KAMELKEV/CSS-Inliner-3936.tar.gz
+ sha256sums = 047fa69f3d9e61d0cf9c7ea7eb78e0d3d33fb9ff6b180d6eafe53c26b0121c4a
+
+pkgname = perl-css-inliner
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..20cdab125c81
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Yardena Cohen <yardenack at gmail dot com>
+
+cpaname=CSS-Inliner
+cpanauthor=KAMELKEV
+pkgname=perl-${cpaname,,}
+pkgver=3936
+pkgrel=1
+pkgdesc="Perl CSS::Inliner CPAN module"
+arch=('any')
+url="http://search.cpan.org/dist/${cpaname}/"
+license=('unknown')
+options=('!emptydirs')
+depends=('perl' 'perl-html-query' 'perl-html-treebuilder-xpath' 'perl-libwww' 'perl-uri')
+source=("http://search.cpan.org/CPAN/authors/id/${cpanauthor::1}/${cpanauthor::2}/${cpanauthor}/${cpaname}-${pkgver}.tar.gz")
+sha256sums=('047fa69f3d9e61d0cf9c7ea7eb78e0d3d33fb9ff6b180d6eafe53c26b0121c4a')
+
+build() {
+ cd "${srcdir}/${cpaname}-${pkgver}"
+ perl Makefile.PL
+ make
+}
+
+check() {
+ cd "${srcdir}/${cpaname}-${pkgver}"
+ make test
+}
+
+package () {
+ cd "${srcdir}/${cpaname}-${pkgver}"
+ make install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
+}