summaryrefslogtreecommitdiffstats
path: root/src/portablexdr.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-03-23 11:18:38 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-03-23 11:18:38 (GMT)
commit284e91c8141087e3fe20b6325d966972baabb5c2 (patch)
tree811939678c6ee26c5c73cf2fdc40533de70108dd /src/portablexdr.mk
parentdff5a376a1b3a0145f888357e35223b86a8d3e40 (diff)
downloadmxe-284e91c8141087e3fe20b6325d966972baabb5c2.zip
mxe-284e91c8141087e3fe20b6325d966972baabb5c2.tar.gz
mxe-284e91c8141087e3fe20b6325d966972baabb5c2.tar.bz2
package portablexdr: add update macro
Diffstat (limited to 'src/portablexdr.mk')
-rw-r--r--src/portablexdr.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/portablexdr.mk b/src/portablexdr.mk
index bf07a6b..6dda198 100644
--- a/src/portablexdr.mk
+++ b/src/portablexdr.mk
@@ -10,8 +10,10 @@ $(PKG)_URL := http://people.redhat.com/~rjones/portablexdr/files/$($(PKG)_F
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
- echo 'TODO: write update script for $(PKG).' >&2;
- echo $($(PKG)_VERSION)
+ $(WGET) -q -O- "http://people.redhat.com/~rjones/portablexdr/files/?C=M;O=D" | \
+ grep -i '<a href=.*tar' | \
+ $(SED) -n 's,.*portablexdr-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
endef
define $(PKG)_BUILD