diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-12-23 11:57:41 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-12-23 11:57:41 -0500 |
commit | 820f075a89a44c4ade3eb4049071d4c28664d52e (patch) | |
tree | fa0ec906228c7e8634a5fb7df37bc40efd372f13 /~lukeshu/android-udev/Makefile | |
parent | 2574d86e478780b7f332aa097b4db4a3a5e4ca30 (diff) | |
download | abslibre-820f075a89a44c4ade3eb4049071d4c28664d52e.tar.gz abslibre-820f075a89a44c4ade3eb4049071d4c28664d52e.tar.bz2 abslibre-820f075a89a44c4ade3eb4049071d4c28664d52e.zip |
update [android-udev] in [~lukeshu] from AUR
Diffstat (limited to '~lukeshu/android-udev/Makefile')
-rw-r--r-- | ~lukeshu/android-udev/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/~lukeshu/android-udev/Makefile b/~lukeshu/android-udev/Makefile new file mode 100644 index 000000000..238877f5a --- /dev/null +++ b/~lukeshu/android-udev/Makefile @@ -0,0 +1,33 @@ +# Use this to update the package from AUR. + +default: PHONY all +all: PHONY 51-android.rules PKGBUILD + +name=android-udev + +aur: + mkdir $@ +aur/%.tar.gz: | aur + cd aur && wget http://aur.archlinux.org/packages/$*/$*.tar.gz +aur/%: aur/%.tar.gz + cd aur && tar xzf $(notdir $<) +aur/$(name)/%: aur/$(name).tar.gz | aur/$(name) + test -f $@ && touch $@ + +51-android.rules: aur/$(name)/51-android.rules + sed -r 's/\s+$$//' < $< > $@ + +PKGBUILD: aur/$(name)/PKGBUILD 51-android.rules + # Update pkg{ver,rel} + ver=`grep -m1 pkgver= $<` ; sed -i "s/pkgver=.*/$$ver/" $@ + rel=`grep -m1 pkgrel= $<`.1; sed -i "s/pkgrel=.*/$$rel/" $@ + # Update md5sums + sed -i '/md5sums/,$$d' $@ + makepkg -g >> $@ + +clean: PHONY + rm -rf aur +maintainerclean: PHONY clean + rm -f 51-android.rules + +.PHONY: PHONY FORCE |