summaryrefslogtreecommitdiff
path: root/xdiff/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'xdiff/APKBUILD')
-rw-r--r--xdiff/APKBUILD39
1 files changed, 19 insertions, 20 deletions
diff --git a/xdiff/APKBUILD b/xdiff/APKBUILD
index c2e32fa..f4df063 100644
--- a/xdiff/APKBUILD
+++ b/xdiff/APKBUILD
@@ -1,20 +1,19 @@
# Contributor: John Vogel <jvogel4@stny.rr.com>
# Maintainer: John Vogel <jvogel4@stny.rr.com>
pkgname=xdiff
-pkgver=2.40.1_git20230511
-_commit=4e970f608ee778180e7f68ae1a1c59099a7c1307
-pkgrel=0
+pkgver=2.45.0_git20240513
+_commit=5fa8f66616766361f49bfe0cc0d39451a6795449
+pkgrel=1
pkgdesc="file differential library used by git, libgit2 and vim"
url="https://github.com/libgit2/xdiff"
arch="all"
license="LGPL-2.1-or-later"
-makedepends="cmake samurai"
-install=""
-subpackages="$pkgname-static $pkgname-dev"
+makedepends="cmake"
+subpackages="$pkgname-dev $pkgname-doc"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/libgit2/xdiff/archive/$_commit.tar.gz
0001-flesh-out-CMakeLists.txt-for-managable-build-install.patch
- 0002-git-diff.h-fix-build-with-musl-libc.patch"
+ 0002-fix-build-with-musl-libc.patch"
builddir="$srcdir/xdiff-$_commit"
@@ -22,29 +21,29 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
- cmake -B build-shared \
+ cmake -B build-static \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DBUILD_SHARED_LIBS=ON \
- -DBUILD_STATIC_LIBS=OFF \
-DCMAKE_BUILD_TYPE=None \
$crossopts
- cmake --build build-shared
- cmake -B build-static \
+ cmake --build build-static
+ cmake -B build-shared \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DBUILD_SHARED_LIBS=OFF \
- -DBUILD_STATIC_LIBS=ON \
+ -DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=None \
$crossopts
- cmake --build build-static
+ cmake --build build-shared
}
package() {
- DESTDIR="$pkgdir" cmake --install build-shared
- DESTDIR="$pkgdir" cmake --install build-static
+ DESTDIR="$pkgdir" cmake --install build-static --component libs
+ DESTDIR="$pkgdir" cmake --install build-shared --component libs
+ DESTDIR="$pkgdir" cmake --install build-shared --component files
+ install -D -m 644 -t "$pkgdir"/usr/share/doc/"$pkgname" \
+ README.md COPYING
}
sha512sums="
-6e4b70b2e3dcf59052c8dfd93598bd9d3bcdc3c2f7023aa57fe97913dc2b5c6d861a37886328e483fbcc97fc036b1347406f62cf93f1f3931dbdc3f35f0ddad3 xdiff-2.40.1_git20230511.tar.gz
-8fd1b2bbd70dcdb69d5d969111863c5fe9802e264bcc04c921a542fc78be39efc659f2f33330d021e6bf6c023f4c9b2eaabc8aeecc6634196cf2716f70b6a3f8 0001-flesh-out-CMakeLists.txt-for-managable-build-install.patch
-ca4b04b65201ef35a6498f8d4f41d8a4d69d4811a53e3ce02778496dd105c39f7bcd43fbca24196975d994822187b14e58070af73fa10598de86774eafefc8f1 0002-git-diff.h-fix-build-with-musl-libc.patch
+5aa0503b55c6d017d1b89bbf432ffba765276b5145ff3e0e6da64da7515dedf5d8343488fb5d4fa5d8960db6b852a31ebdf00552659a34fd768f0456f1015125 xdiff-2.45.0_git20240513.tar.gz
+567d3ade90ac702de884b42dda738da08aa6b44e2592c095b205ea899932a3ae292362a99009ce6dffa4fb9192a4add0cb0faea7fe3846fcd4635b9b4d96864c 0001-flesh-out-CMakeLists.txt-for-managable-build-install.patch
+11562aaed9c1a0bfe5beb9d02dee1a206f5803580b59b4fd0249586d18b79ed9d44ecab25c0e2c40b596ffcaa45213e38a8b419f5368b9d8145a03467d2b4bd8 0002-fix-build-with-musl-libc.patch
"