Skip to content

Commit

Permalink
starship: apply update for libz-sys crate
Browse files Browse the repository at this point in the history
  • Loading branch information
ognevny committed Jan 8, 2024
1 parent 5c94368 commit 833b006
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions mingw-w64-starship/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@ depends=("${MINGW_PACKAGE_PREFIX}-libgit2")
makedepends=("${MINGW_PACKAGE_PREFIX}-rust"
"${MINGW_PACKAGE_PREFIX}-cmake")
optdepends=("${MINGW_PACKAGE_PREFIX}-ttf-font-nerd: Nerd Font Symbols preset")
options=('staticlibs' 'strip')
source=("https://github.com/starship/starship/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
sha256sums=('2b2fc84feb0197104982e8baf17952449375917da66b7a98b3e3fd0be63e5dba')
options=('!strip' '!lto') # done at build stage
source=("https://github.com/starship/starship/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
"https://github.com/starship/starship/pull/5690.patch")
sha256sums=('2b2fc84feb0197104982e8baf17952449375917da66b7a98b3e3fd0be63e5dba'
'2969b3fab871af21f351674d241c58d5821542e5a00a2bf24c249ee8fffd2d07')
noextract=("${_realname}-${pkgver}.tar.gz")

prepare() {
tar -xzf "${srcdir}"/${_realname}-${pkgver}.tar.gz -C ${srcdir} || true
cd "${srcdir}/${_realname}-${pkgver}"

# https://github.com/starship/starship/pull/5690
patch -Np1 -i "${srcdir}/5690.patch"

cargo fetch --locked
}

Expand Down

0 comments on commit 833b006

Please sign in to comment.