shithub: treason

ref: 71687b06891fe7024fa66a0ee8d47769d05c11ed
dir: treason/install.rc

View raw version
#!/bin/rc
rfork ne
flag e +

cd ..

test -d dav1d || { hget https://git.sr.ht/~ft/dav1d/archive/master.tar.gz | tar xz && \
	mv dav1d-master dav1d && \
	cd dav1d/src && \
	mk && \
	cd ../../
}

test -d faad2-master || { hget https://git.sr.ht/~ft/faad2/archive/master.tar.gz | tar xz && \
	cd faad2-master/libfaad && \
	mk install && \
	cd ../frontend && \
	mk install && \
	cd ../..
}

test -d h264bsd || { hget https://git.sr.ht/~ft/h264bsd/archive/master.tar.gz | tar xz && \
	mv h264bsd-master h264bsd && \
	cd h264bsd/src && \
	mk && \
	cd ../..
}

test -d libvpx || { hget https://git.sr.ht/~ft/libvpx/archive/master.tar.gz | tar xz && \
	mv libvpx-master libvpx && \
	cd libvpx && \
	mk && \
	cd ..
}

test -d mcfs-master || { hget https://git.sr.ht/~ft/mcfs/archive/master.tar.gz | tar xz && \
	cd mcfs-master && \
	mk install && \
	cd ..
}

test -d opus || { hget https://github.com/xiph/opus/archive/master.tar.gz | tar xz && \
	mv opus-master opus
}

test -d libopusenc || { hget https://github.com/xiph/libopusenc/archive/master.tar.gz | tar xz && \
	mv libopusenc-master libopusenc
}

test -d opusfile || { hget https://github.com/xiph/opusfile/archive/master.tar.gz | tar xz && \
	mv opusfile-master opusfile
}

test -d opus-tools || { hget https://github.com/xiph/opus-tools/archive/master.tar.gz | tar xz && \
	mv opus-tools-master opus-tools
}

test -d alienpatch || { hget https://github.com/qwx9/alienpatch/archive/master.tar.gz | tar xz && \
	mv alienpatch-master alienpatch && \
	for(i in opus libopusenc opusfile opus-tools) { \
		cd $i; \
		ape/patch -p0 <../alienpatch/$i || echo failed; \
		mk install; \
		cd ..; \
	}
}

cd treason && \
	mk install && \
	rm -rf ../^(dav1d faad2-master h264bsd libvpx mcfs-master opus libopusenc opusfile opus-tools alienpatch)