aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagomeYae <[email protected]>2021-11-05 02:43:36 +0800
committerMagomeYae <[email protected]>2021-11-05 02:43:36 +0800
commitace732e8c79fd354c094c61a576db2caadd7cfb7 (patch)
treededd011df24fb523a56ef718f35a58cf667d1c0f
parent8edcb101646311a05bc5eb4e6dd8821e06a67bc4 (diff)
feat(pkg): Use submodule to manage pod2man
Signed-off-by: MagomeYae <[email protected]>
-rw-r--r--.gitmodules3
-rw-r--r--repo/.hook/pod2man2
m---------repo/pod2man0
-rw-r--r--repo/pod2man/PKGBUILD22
4 files changed, 5 insertions, 22 deletions
diff --git a/.gitmodules b/.gitmodules
index 824fc73..6c0695e 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -25,3 +25,6 @@
[submodule "repo/wget2"]
path = repo/wget2
url = https://aur.archlinux.org/wget2.git
+[submodule "repo/pod2man"]
+ path = repo/pod2man
+ url = https://aur.archlinux.org/pod2man.git
diff --git a/repo/.hook/pod2man b/repo/.hook/pod2man
new file mode 100644
index 0000000..c149af4
--- /dev/null
+++ b/repo/.hook/pod2man
@@ -0,0 +1,2 @@
+#!/bin/bash
+sed -i 's/x86_64/any/g' PKGBUILD \ No newline at end of file
diff --git a/repo/pod2man b/repo/pod2man
new file mode 160000
+Subproject 52df606de2b99aaf706bd5ab25be84e8d17aa43
diff --git a/repo/pod2man/PKGBUILD b/repo/pod2man/PKGBUILD
deleted file mode 100644
index 4883f18..0000000
--- a/repo/pod2man/PKGBUILD
+++ /dev/null
@@ -1,22 +0,0 @@
-# Maintainer: Fernando Ortiz <[email protected] >
-# Contributor: Alexander F. Rødseth <[email protected]>
-
-pkgname=pod2man
-pkgver=5.30.2
-pkgrel=1
-pkgdesc='Make pod2man easily accessible'
-arch=(any)
-license=(GPL PerlArtistic)
-url='https://perl.org/'
-depends=(perl)
-
-package() {
- # perl 5 places pod2man in /usr/bin/core_perl instead of /usr/bin,
- # for unknown reasons. This creates a symlink in what is what is now a more
- # conventional location.
-
- install -d "$pkgdir/usr/bin"
- ln -s /usr/bin/core_perl/pod2man "$pkgdir/usr/bin/pod2man"
-}
-
-# vim: ts=2 sw=2 et: