summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof AS (3ED)2016-04-12 10:51:41 +0200
committerKrzysztof AS (3ED)2016-04-12 10:51:41 +0200
commit8db69b4b92e3c2d8edf14bbfa5a76a27a2232269 (patch)
treea46bbeceb8333a17acb72a22111b0837469b680b
downloadaur-8db69b4b92e3c2d8edf14bbfa5a76a27a2232269.tar.gz
initial
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD46
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..55699e49d73
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Tue Apr 12 08:51:27 UTC 2016
+pkgbase = perl-checkupdates-aur
+ pkgdesc = checkupdates for aur
+ pkgver = 0.01
+ pkgrel = 1
+ url = https://github.com/3ed/CheckUpdates-AUR
+ arch = any
+ license = Artistic2.0
+ makedepends = perl-module-build
+ depends = perl-www-aur
+ depends = perl-json
+ depends = perl-try-tiny
+ optdepends = perl-smart-Comments: for debug perpose only
+ source = CheckUpdates-AUR-0.01.tar.gz::https://github.com/3ed/CheckUpdates-AUR/archive/v0.01.tar.gz
+ sha256sums = e1f96259fbd3558852b83f9ae80b0395de988aaca2a065c79a85f6ecc8b7419b
+
+pkgname = perl-checkupdates-aur
+
+pkgname = checkupdates-aur
+ depends = perl-checkupdates-aur
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e41ab7ce1f9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: 3ED <krzysztof1987 at gmail>
+
+pkgbase=perl-checkupdates-aur
+pkgname=(perl-checkupdates-aur checkupdates-aur)
+_pkgname=CheckUpdates-AUR
+pkgver=0.01
+pkgrel=1
+pkgdesc="checkupdates for aur"
+arch=('any')
+url="https://github.com/3ed/CheckUpdates-AUR"
+license=('Artistic2.0')
+depends=('perl-www-aur' 'perl-json' 'perl-try-tiny')
+makedepends=('perl-module-build')
+optdepends=('perl-smart-Comments: for debug perpose only')
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/3ed/${_pkgname}/archive/v${pkgver}.tar.gz")
+sha256sums=('e1f96259fbd3558852b83f9ae80b0395de988aaca2a065c79a85f6ecc8b7419b')
+
+build() {
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ MODULEBUILDRC=/dev/null
+
+ cd "${_pkgname}-${pkgver}"
+ perl Build.PL
+ perl Build
+}
+
+check() {
+ cd "${_pkgname}-${pkgver}"
+ perl Build test
+}
+
+package_perl-checkupdates-aur() {
+ cd "${_pkgname}-${pkgver}"
+ perl Build install
+
+ rm -rf "$pkgdir/usr/bin/"
+}
+
+package_checkupdates-aur() {
+ depends=('perl-checkupdates-aur')
+
+ cd "${_pkgname}-${pkgver}"
+ install -D -m755 bin/checkupdates-aur "$pkgdir/usr/bin/checkupdates-aur"
+}