| 1 | package=native_mac_alias |
| 2 | $(package)_version=1.1.0 |
| 3 | $(package)_download_path=https://github.com/al45tair/mac_alias/archive/ |
| 4 | $(package)_download_file=v$($(package)_version).tar.gz |
| 5 | $(package)_file_name=$(package)-$($(package)_version).tar.gz |
| 6 | $(package)_sha256_hash=b10cb44ecb64fc25283fae7a9cf365d2829377d84e37b9c21100aca8757509be |
| 7 | $(package)_install_libdir=$(build_prefix)/lib/python/dist-packages |
| 8 | $(package)_patches=python3.patch |
| 9 | |
| 10 | define $(package)_preprocess_cmds |
| 11 | patch -p1 < $($(package)_patch_dir)/python3.patch |
| 12 | endef |
| 13 | |
| 14 | define $(package)_build_cmds |
| 15 | python setup.py build |
| 16 | endef |
| 17 | |
| 18 | define $(package)_stage_cmds |
| 19 | mkdir -p $($(package)_install_libdir) && \ |
| 20 | python setup.py install --root=$($(package)_staging_dir) --prefix=$(build_prefix) --install-lib=$($(package)_install_libdir) |
| 21 | endef |