diff options
Diffstat (limited to 'mozilla-testing/icecat-i18n/Makefile')
-rw-r--r-- | mozilla-testing/icecat-i18n/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/mozilla-testing/icecat-i18n/Makefile b/mozilla-testing/icecat-i18n/Makefile index 5dd818e62..237edb616 100644 --- a/mozilla-testing/icecat-i18n/Makefile +++ b/mozilla-testing/icecat-i18n/Makefile @@ -7,25 +7,30 @@ # - sed # - wget +# Variables: +_pkgver=9.0 pkgver=9.0.1 +pkgrel=2 + +# Guts: ############################################################## default: PHONY all all: PHONY PKGBUILD -.PRECIOUS: PKGBUILD index.html: Makefile rm -f $@ wget http://gnuzilla.gnu.org/download/langpacks/${pkgver}/ langpacks.txt: index.html Makefile egrep -o '[^>".]+\.xpi' $< | sort -u | sed 's/\.xpi//' > $@ -PKGBUILD: langpacks.txt Makefile +PKGBUILD: PKGBUILD.in langpacks.txt Makefile sed \ - -e 's/^pkgver=.*/pkgver=$(pkgver)/' \ - -e "s/_langpacks=.*/_langpacks=(`xargs echo < $<`)/" \ + -e 's/@_PKGVER@/$(_pkgver)/' \ + -e 's/@PKGVER@/$(pkgver)/' \ + -e 's/@PKGREL@/$(pkgrel)/' \ + -e "s/@LANGPACKS@/(`xargs echo < langpacks.txt`)/" \ -e '/md5sums/,$$d' \ - $@ > $@.$$$$ && \ - makepkg -g >> $@.$$$$ && \ - mv $@.$$$$ $@ + PKGBUILD.in > $@ + makepkg -dg >> $@ clean: PHONY rm -f index.html langpacks.txt *.xpi |