summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}"