summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 03:03:01 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 03:03:01 +0000
commitef92def08873383eef28fb2b4ba8151bc4366a4b (patch)
treef8859b8edb0f632d440acefcb295696edb0bdfaf
parentcb32ba13a0326b5ff8ad26b219ec1105096acb29 (diff)
downloadpackages-ef92def08873383eef28fb2b4ba8151bc4366a4b.tar.gz
packages-ef92def08873383eef28fb2b4ba8151bc4366a4b.tar.bz2
packages-ef92def08873383eef28fb2b4ba8151bc4366a4b.tar.xz
packages-ef92def08873383eef28fb2b4ba8151bc4366a4b.zip
user/perl-file-desktopentry: new package
-rw-r--r--user/perl-file-desktopentry/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-file-desktopentry/APKBUILD b/user/perl-file-desktopentry/APKBUILD
new file mode 100644
index 000000000..ed6e402c8
--- /dev/null
+++ b/user/perl-file-desktopentry/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-file-desktopentry
+_pkgname=File-DesktopEntry
+pkgver=0.22
+pkgrel=0
+pkgdesc="Handle .desktop files from Perl"
+url="https://metacpan.org/release/File-DesktopEntry"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends="perl-file-basedir perl-uri-escape"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/M/MI/MICHIELB/File-DesktopEntry-$pkgver.tar.gz"
+builddir="$srcdir/File-DesktopEntry-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="f6a0f2a91c66ea3e5ebac1e66f82317c4109d8d3e2211b4e84cd870b9df07320c03ee0d026e89f788338a1c02152c77e36402684da4f5a7093eb3ac21ff584a7 File-DesktopEntry-0.22.tar.gz"