forked from pool/fontforge
c2fc62a232
- Add reproducible.patch to override font build dates (boo#1047218) - repack sources to .xz since we have to repack already OBS-URL: https://build.opensuse.org/request/show/626785 OBS-URL: https://build.opensuse.org/package/show/M17N/fontforge?expand=0&rev=68
29 lines
672 B
Bash
29 lines
672 B
Bash
#!/bin/sh
|
|
|
|
#
|
|
# repack source -- delete libX11-*.noarch.rpm from there; see bug #926061
|
|
#
|
|
|
|
VERSION=$1
|
|
|
|
if [ -z $VERSION ]; then
|
|
echo "usage: $0 date_version"
|
|
echo "example: $0 20150330"
|
|
exit 1
|
|
fi
|
|
|
|
wget "https://github.com/fontforge/fontforge/archive/$VERSION.tar.gz"
|
|
tar xf $VERSION.tar.gz
|
|
pushd fontforge-$VERSION
|
|
# do not depend on git
|
|
git clone https://github.com/troydhanson/uthash
|
|
git clone --depth 1 https://github.com/coreutils/gnulib.git gnulib
|
|
# remove not shippable files (bug 926061)
|
|
rm win/gold/libX11-*.noarch.rpm
|
|
./bootstrap --copy --force
|
|
popd
|
|
tar cJf fontforge-$VERSION-repacked.tar.xz fontforge-$VERSION
|
|
rm -rf fontforge-$VERSION
|
|
rm $VERSION.tar.gz
|
|
|