summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-02-27 12:28:41 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-02-27 12:28:41 +0100
commit3f59fd8d7da6bc908ff5381ead6e9ebd96ebaf60 (patch)
treefb50d1a603e0acc16a2e025b45b813fb15802ef7
parent8b1e0d73830183294ab1a46f66b19c2831ce6e73 (diff)
downloadnetctl-3f59fd8d7da6bc908ff5381ead6e9ebd96ebaf60.tar.gz
netctl-3f59fd8d7da6bc908ff5381ead6e9ebd96ebaf60.tar.xz
PKGBUILD: use signed sources
This commit extends 8b1e0.
-rw-r--r--Makefile5
-rw-r--r--contrib/PKGBUILD5
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 19174b2..cfe5d79 100644
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,10 @@ netctl-$(VERSION).tar.xz: | docs
pkgbuild: PKGBUILD
PKGBUILD: netctl-$(VERSION).tar.xz
- sed -e "s/%pkgver%/$(VERSION)/" -e "s/%md5sum%/$(shell md5sum $< | cut -d ' ' -f 1)/" contrib/PKGBUILD > $@
+ sed -e "s/%pkgver%/$(VERSION)/g" \
+ -e "s/%md5sum%/$(shell md5sum $< | cut -d ' ' -f 1)/" \
+ -e "s/%md5sum.sig%/$(shell md5sum $<.sig | cut -d ' ' -f 1)/" \
+ contrib/PKGBUILD > $@
upload: netctl-$(VERSION).tar.xz
scp $< $<.sig nymeria.archlinux.org:/srv/ftp/other/packages/netctl
diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD
index 14052ec..b182b6d 100644
--- a/contrib/PKGBUILD
+++ b/contrib/PKGBUILD
@@ -18,9 +18,10 @@ optdepends=('dialog: for the menu based wifi assistant'
'bridge-utils: for bridge connections'
)
conflicts=("netcfg")
-source=(ftp://ftp.archlinux.org/other/netctl/netctl-${pkgver}.tar.xz)
+source=(ftp://ftp.archlinux.org/other/packages/netctl/netctl-${pkgver}.tar.xz{,.sig})
arch=(any)
-md5sums=('%md5sum%')
+md5sums=('%md5sum%'
+ '%md5sum.sig%')
package() {
cd "$srcdir/netctl-${pkgver}"