Skip to content

Commit 1cedd59

Browse files
committed
chore(asfa-git): include README/CHANGELOG/example-config
1 parent 40fd12d commit 1cedd59

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

aur/asfa-git/.SRCINFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgbase = asfa-git
22
pkgdesc = share files by upload via ssh and generation of a non-guessable link
3-
pkgver = 0.10.0.r3.g0f6b0b4
3+
pkgver = 0.10.0.1.r0.g7ab27e1
44
pkgrel = 1
55
url = https://github.com/obreitwi/asfa
66
arch = x86_64

aur/asfa-git/PKGBUILD

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
_pkgname=asfa
44
pkgname=${_pkgname}-git
5-
pkgver=0.10.0.r3.g0f6b0b4
5+
pkgver=0.10.0.1.r0.g7ab27e1
66
pkgrel=1
77
pkgdesc='share files by upload via ssh and generation of a non-guessable link'
88
arch=('x86_64')
@@ -38,7 +38,8 @@ _cargo_version() {
3838
# Only difference: dash after minor version.
3939
_ensure_version_information() {
4040
local _version
41-
_version="$(_cargo_version)"
41+
# patch version to denote binary re-release with a dash
42+
_version="$(_cargo_version | sed 's/\./-/3')"
4243
cd "$srcdir/$_pkgname"
4344
sed -i "s/^version = .*\$/version = \"${_version}\"/" Cargo.toml
4445
# Replace the new verison in Cargo.lock but keep all other version info
@@ -80,5 +81,9 @@ package() {
8081
find target/release/man/man1 -type f -print0 \
8182
| xargs -0 install -Dm644 -t "$pkgdir/usr/share/man/man1"
8283
find "$pkgdir/usr/share/man/man1" -type f -print0 | xargs -0 gzip
84+
find example-config -type f -print0 \
85+
| xargs -0 install -Dm644 -t "$pkgdir/usr/share/doc/asfa/example-config"
86+
install -Dm644 README.md -t "$pkgdir/usr/share/doc/asfa"
87+
install -Dm644 CHANGELOG.md -t "$pkgdir/usr/share/doc/asfa"
8388
}
8489

0 commit comments

Comments
 (0)