diff options
author | fancy | 2020-05-08 20:05:01 +0800 |
---|---|---|
committer | fancy | 2020-05-08 20:05:01 +0800 |
commit | 689b7c1ad55aaba670ffa59dc6c3231f43e0fa2e (patch) | |
tree | 9ef58c9f01e1c0c940d4be7dc9cd448c285a76e6 | |
parent | c2d6dda7495f109e7ea9d2bbe3df8e2ad86ddc0c (diff) | |
download | aur-689b7c1ad55aaba670ffa59dc6c3231f43e0fa2e.tar.gz |
updated
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 8 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = ap pkgdesc = simple wireless ap support both ipv4 and ipv6 with nat - pkgver = v1.0.r1.gbd42539 + pkgver = v1.0.r2.g3b105fb pkgrel = 1 url = https://github.com/springzfx/ap arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Fancy Zhang <springzfx@gmail.com> pkgbase=ap pkgname=ap-git -pkgver=v1.0.r1.gbd42539 +pkgver=v1.0.r2.g3b105fb pkgrel=1 pkgdesc="simple wireless ap support both ipv4 and ipv6 with nat" arch=('x86_64') @@ -17,7 +17,7 @@ pkgver() { cd "$pkgname" ( set -o pipefail git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || - printf "r%s" "$(git rev-list --count HEAD)" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } @@ -25,9 +25,11 @@ backup=('etc/ap/ap.conf') package_ap-git(){ cd "$pkgname" - install -d ${pkgdir}/usr/lib/systemd/system/ ${pkgdir}/etc/ap/ ${pkgdir}/usr/share/ap/ ${pkgdir}/usr/bin/ - install -m 544 ap.service ${pkgdir}/usr/lib/systemd/system/ + install -d ${pkgdir}/usr/lib/systemd/system/ ${pkgdir}/etc/ap/ ${pkgdir}/usr/share/ap/ ${pkgdir}/usr/bin/ \ + ${pkgdir}/lib/systemd/system-sleep/ + install -m 444 ap.service ${pkgdir}/usr/lib/systemd/system/ install -m 544 ap.sh ${pkgdir}/usr/bin/ap install -m 644 ap.conf ${pkgdir}/etc/ap/ - install -m 544 iptables-add.sh iptables-del.sh dnsmasq-template.sh hostapd-template.sh ${pkgdir}/usr/share/ap/ + install -m 444 iptables-add.sh iptables-del.sh dnsmasq-template.sh hostapd-template.sh ${pkgdir}/usr/share/ap/ + install -m 544 ap.resume ${pkgdir}/lib/systemd/system-sleep/ } |