Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/zsh
- set -x
- package="${1}"
- package_orig="${package}.ORIG"
- package_build="${package}.BUILD"
- tarball="${package}.tar.bz2"
- my_patch="${package}.new-smtools.patch"
- remove_directories () {
- [[ -d "${package}" ]] && rm -rf "${package}"
- [[ -d "${package_orig}" ]] && rm -rf "${package_orig}"
- [[ -d "${package_build}" ]] && rm -rf "${package_build}"
- }
- remove_directories
- tar xf "${tarball}"
- cp -rf "${package}" "${package_orig}"
- cp -rf "${package}" "${package_build}"
- pushd "${package}"
- WANT_AUTOMAKE=1.14 autoreconf -ivf
- sed -i -e '/^import fontforge/s/import fontforge/import sortsmill.ffcompat as fontforge/' ./**/*.py
- popd
- mkpatch "${package_orig}" "${package}" > "${my_patch}"
- bzip2 -f "${my_patch}"
- pushd "${package_build}"
- bzip2 -d < "../${my_patch}.bz2" | patch -Np1
- ./configure --enable-truetype
- make -j9
- popd
- remove_directories
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement