diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-06-02 22:54:10 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-06-02 22:54:10 -0300 |
commit | 4ce84837520f8c56ae998d5d2d98380faf3e3eb5 (patch) | |
tree | b22e90f4dc9b313fbc814852c874e4fb31a8d0c7 /libre/iceape-i18n/Makefile | |
parent | 5f74139e49aec90fef556447373608db10d9f1e6 (diff) | |
parent | 96b3ccdea0907e8df071273f302e1640b05d07c6 (diff) | |
download | abslibre-4ce84837520f8c56ae998d5d2d98380faf3e3eb5.tar.gz abslibre-4ce84837520f8c56ae998d5d2d98380faf3e3eb5.tar.bz2 abslibre-4ce84837520f8c56ae998d5d2d98380faf3e3eb5.zip |
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to 'libre/iceape-i18n/Makefile')
-rw-r--r-- | libre/iceape-i18n/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/libre/iceape-i18n/Makefile b/libre/iceape-i18n/Makefile new file mode 100644 index 000000000..89aaccfdc --- /dev/null +++ b/libre/iceape-i18n/Makefile @@ -0,0 +1,59 @@ +#!/usr/bin/make -f +# Use this script to update the PKGBUILD's list of langpacks. +# This script depends on: +# - coreutils +# - pacman +# - sed + +# Variables: +# This is to get it from Debian Sid +debname=iceape-l10n +debver=2.7.4+debian +debrel=2 +debrepo=http://ftp.debian.org/debian/pool/main/ + +pkgver=2.7.4 +pkgrel=1 + +# Guts: ############################################################## + +default: PHONY all +all: PHONY + $(MAKE) clean + $(MAKE) PKGBUILD +.PRECIOUS: PKGBUILD + +PKGBUILD.list: Makefile + sed \ + -e 's/@DEBNAME@/$(debname)/' \ + -e 's/@DEBVER@/$(debver)/' \ + -e 's/@DEBREL@/$(debrel)/' \ + -e 's%@DEBREPO@%$(debrepo)%' \ + -e 's/@PKGVER@/$(pkgver)/' \ + -e 's/@PKGREL@/$(pkgrel)/' \ + -e "s/@LANGPACKS@/(phony)/" \ + -e '/CUT HERE/,$$d' \ + PKGBUILD.in > $@ + echo 'package() { exit 0; }' >> $@ + makepkg -gp $@ >> $@ +langpacks.txt: PKGBUILD.list Makefile + makepkg -dp $< + ls src/*/upstream | sed 's/\.xpi//' > $@ +PKGBUILD: PKGBUILD.in langpacks.txt Makefile + sed \ + -e 's/@DEBNAME@/$(debname)/' \ + -e 's/@DEBVER@/$(debver)/' \ + -e 's/@DEBREL@/$(debrel)/' \ + -e 's%@DEBREPO@%$(debrepo)%' \ + -e 's/@PKGVER@/$(pkgver)/' \ + -e 's/@PKGREL@/$(pkgrel)/' \ + -e "s/@LANGPACKS@/(`xargs echo < langpacks.txt`)/" \ + -e '/CUT HERE/d' \ + -e '/md5sums/,$$d' \ + PKGBUILD.in > $@ + makepkg -dg >> $@ + +clean: PHONY + rm -f PKGBUILD.list langpacks.txt + +.PHONY: PHONY FORCE |