DOWNLOAD=$(wget --load-cookies /tmp/kaka --save-cookies /tmp/kaka --keep-session-cookies "https://plex.tv/downloads" -O - 2>/dev/null | grep ".deb" | grep -m 1 "64-bit" | sed "s/.*href=\"\([^\"]*\\.deb\)\"[^>]*>64-bit.*/\1/")FILE=$(echo $DOWNLOAD|cut -d"/" -f6)wget $DOWNLOADsudo dpkg -i $FILE
DOWNLOAD=$(wget --load-cookies /tmp/kaka --save-cookies /tmp/kaka --keep-session-cookies "https://plex.tv/api/downloads/1.json" -O - 2>/dev/null | grep -ioe '"label"[^}]*' | grep -i "\"distro\":\"ubuntu\""| grep -i "\"build\":\"linux-ubuntu-x86_64\"" | grep -m1 -ioe 'https://[^\"]*')FILE=$(echo $DOWNLOAD|cut -d"/" -f6)wget $DOWNLOAD
version_of = src/$(name).tgzsrc_rule = src/$(name)-HEADDOWNLOAD=$(shell wget --load-cookies /tmp/kaka --save-cookies /tmp/kaka --keep-session-cookies "https://plex.tv/api/downloads/1.json" -O - 2>/dev/null | grep -ioe '"label"[^}]*' | grep -i "\"distro\":\"ubuntu\""| grep -i "\"build\":\"linux-ubuntu-$(if $(filter amd64,$(ARCH)),x86_64,i686)\"" | grep -m1 -ioe 'https://[^\"]*')DATEI=$(shell echo $(DOWNLOAD)|cut -d"/" -f6)version=$(shel echo $(DATEI)|cut -d"_" -f2)deps := pkg-configinclude ../Makefile.defaultinclude ../Makefile.toolsall: $(package).$(suffix)clean: _clean rm -rf src/$(name)* rm -f include$(data): $(data_tree) src/$(name) mkdir -p $@/usr/lib cp -r src/$(name)/usr/lib/* $@/usr/lib/src/$(name): src/$(name)-$(version) ln -snf $(^F) $@src/$(name)-$(version): src/$(name).tgz rm -rf $@* mkdir -p $@-src tar xf $^ -C $@-src mv $@-src/* $@ rm -r $@-src touch $@src/$(name).tgz: $(MAKE) -f ../Makefile.getfile file=$@ rule=$(src_rule)$(src_rule): mkdir -p $@ wget $(DOWNLOAD) -O $(@D)/$(DATEI) dpkg-deb -x $(@D)/$(DATEI) $@ tar -czf $(file) -C $(@D) $(@F) rm -rf $@
0 Members and 1 Guest are viewing this topic.