Skip to content

Commit

Permalink
Use git based pkgver
Browse files Browse the repository at this point in the history
  • Loading branch information
hmartinez82 committed Jun 15, 2024
1 parent 9ec3d27 commit 6d92543
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions mingw-w64-exempi/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ _realname=exempi
_commit=edeaff6131c5264b8c070c03f4fc6db7264b5b0f
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.6.5
pkgver=2.6.5.r9.gedeaff6
pkgrel=1
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
Expand All @@ -24,14 +24,15 @@ makedepends=("git"
source=("${_realname}"::"git+https://gitlab.freedesktop.org/libopenraw/$_realname.git#commit=$_commit"
001-win32-mingw.patch
002-win32-host.patch)
# 0008-disable-pdf-document-load-fd.patch
# 0009-evince-pe-icon.patch::https://gitlab.gnome.org/GNOME/evince/-/merge_requests/701.diff
# evince.ico::https://gitlab.gnome.org/GNOME/evince/-/raw/24967ecf7f658bb69e512d6e09287c1ccc02c11c/shell/evince.ico?inline=false)
sha256sums=('SKIP'
sha256sums=('224e864924aa4a0076e7f4aed0efc275313235c4f2deeee214a15aabf9722603'
'6f59cf5eb300814e0a403606f2047b2f9b2863565d51e9237b9074b3f7d49b0e'
'a271d34042b6dff7c8cabbd9388da5364b67c4268f0a4024de528ccf413e55fb')
# '6b5a22b5b7ad8bd964c579ccd31a4776eecf0d33b3f10ffacb64774dfb70ff10'
# '0b7493eef41f0907cb523d9165c7a67a13f05c7ee9fb5cce42f7ff3342bc4e4e')

pkgver() {
cd "${srcdir}/${_realname}"

git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

apply_patch_with_msg() {
for _patch in "$@"
Expand All @@ -47,7 +48,6 @@ prepare() {
apply_patch_with_msg \
001-win32-mingw.patch \
002-win32-host.patch

}

build() {
Expand All @@ -62,13 +62,13 @@ build() {
--buildtype=plain \
"../${_realname}"

${MINGW_PREFIX}/bin/ninja -j20
${MINGW_PREFIX}/bin/ninja
}

package() {
cd "${srcdir}/build-${MSYSTEM}"

DESTDIR="${pkgdir}" ninja install

install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
install -Dm644 "${srcdir}/${_realname}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
}

0 comments on commit 6d92543

Please sign in to comment.