# Importada de Alpine aports por `hammer import-alpine` (Etapa G). PUNTO DE PARTIDA — pero # YA trae los parches de musl de Alpine (lo que un import de nix pierde). Pendiente: el # sha256 del tarball (el wrapper lo calcula), y adaptar build/install del shell de abuild. name = "git" version = "2.54.0" [source] tarball = "https://www.kernel.org/pub/software/scm/git/git-2.54.0.tar.xz" # FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine: # sha512 = "cb363917124edc245c9f6745e6e0c4093990275b4d57f9d2213c655b304ac81b05ece8d88546122727495ebc48a5ae19ab166a3ee43b6b8c68da488ac0270064" sha256 = "f689162364c10de79ef89aa8dbf48731eb057e34edbbd20aca510ce0154681a3" patches = ["fix-t4219-with-sticky-bit.patch"] [build] compiler = "zig-cc" target = "x86_64-linux-musl" link = "static" flags = [] [build.phases] # de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático): compile = ''' _abuild_phase() { make prefix=/usr \ DESTDIR="/out" \ perllibdir="$(_perl_config vendorlib)" \ all make -C contrib/subtree prefix=/usr DESTDIR="/out" make -C contrib/diff-highlight prefix=/usr DESTDIR="/out" if [ -n "$_full_build" ]; then # generate manpages outside of package() make prefix=/usr man make prefix=/usr -C contrib/credential/libsecret fi } _abuild_phase ''' # de package() de Alpine (traducido $pkgdir→/out): install = ''' _abuild_phase() { make -C t prefix=/usr DESTDIR="/out" \ perlibdir="$(_perl_config vendorlib)" \ all } _abuild_phase ''' # depends de runtime de Alpine (NO build-deps): perl [deps] build = ["asciidoc", "python3", "tcl", "tk", "libsecret", "glib"]