Compare commits
5 commits
f1bf72867b
...
200a01fc32
Author | SHA1 | Date | |
---|---|---|---|
200a01fc32 | |||
c9c8d4ea13 | |||
4611704e1d | |||
bb3d9f67f2 | |||
bcaa639b87 |
6 changed files with 75 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
# folders
|
||||
*/**/
|
||||
*/pkg
|
||||
*/src
|
||||
|
||||
# archives
|
||||
*.tar*
|
||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -124,6 +124,9 @@
|
|||
[submodule "homebridge-config-ui-x"]
|
||||
path = homebridge-config-ui-x
|
||||
url = ssh://aur@aur.archlinux.org/homebridge-config-ui-x.git
|
||||
[submodule "html2md"]
|
||||
path = html2md
|
||||
url = ssh://aur@aur.archlinux.org/html2md.git
|
||||
[submodule "immudb"]
|
||||
path = immudb
|
||||
url = ssh://aur@aur.archlinux.org/immudb.git
|
||||
|
|
|
@ -129,6 +129,12 @@ exclude_regex = "^.*(alpha|beta|rc).*$"
|
|||
|
||||
# github
|
||||
|
||||
[html2md]
|
||||
source = "github"
|
||||
github = "suntong/html2md"
|
||||
use_max_tag = true
|
||||
prefix = "v"
|
||||
|
||||
[greatest]
|
||||
source = "github"
|
||||
github = "silentbicycle/greatest"
|
||||
|
|
1
html2md
Submodule
1
html2md
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 22e40dc0298fde961f21c3c1877c44c236abc518
|
2
redo-c
2
redo-c
|
@ -1 +1 @@
|
|||
Subproject commit a1f40a8a27262787e8015cde8991ec6843b772fa
|
||||
Subproject commit 04eb08884d01d51ed592e9ed8edb37a16503b68a
|
62
redo-sh/PKGBUILD
Normal file
62
redo-sh/PKGBUILD
Normal file
|
@ -0,0 +1,62 @@
|
|||
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
||||
|
||||
pkgname=redo-sh
|
||||
pkgver=4.0.4
|
||||
pkgrel=1
|
||||
pkgdesc="Redo implementation in Bourne Shell"
|
||||
arch=('any')
|
||||
url="http://news.dieweltistgarnichtso.net/bin/redo-sh.html"
|
||||
license=('AGPL3')
|
||||
depends=('bash')
|
||||
makedepends=('git')
|
||||
optdepends=('graphviz: dependency graph support via redo-dot')
|
||||
provides=('redo')
|
||||
conflicts=('redo-python' 'redo-jdebp' 'redo-c')
|
||||
_commit='039767509a6b52707f9fc28e8dc16c2da294b92b'
|
||||
source=("$pkgname::git+http://news.dieweltistgarnichtso.net/bin.git#commit=$_commit")
|
||||
b2sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
|
||||
git describe --tags | sed 's/^redo-v//'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
|
||||
# description of each expression:
|
||||
# 1 - strip executable components in middle of file
|
||||
# 2 & 3 - remove shebang & subsequent 'cat' invocation
|
||||
# 4 - remove html comments
|
||||
# boom, we now have a valid HTML file
|
||||
sed -i \
|
||||
-e '/^EOF/,/^cat <<EOF/d' \
|
||||
-e '/#!\/bin\/sh/d' \
|
||||
-e '/cat <<EOF/d' \
|
||||
-e '/^<!--/,/^-->/d' \
|
||||
redo-sh.do
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
|
||||
# scripts
|
||||
find . \
|
||||
-maxdepth 1 \
|
||||
-executable \
|
||||
-type f \
|
||||
-name "redo*" \
|
||||
-exec install -vDm755 -t "$pkgdir/usr/bin" "{}" +
|
||||
|
||||
# man pages
|
||||
find . \
|
||||
-maxdepth 1 \
|
||||
-type f \
|
||||
-name "redo*.1" \
|
||||
-exec install -vDm644 -t "$pkgdir/usr/share/man/man1" "{}" +
|
||||
|
||||
# documentation
|
||||
install -vDm644 "redo-sh.do" "$pkgdir/usr/share/doc/$pkgname/index.html"
|
||||
}
|
||||
|
Loading…
Reference in a new issue