Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtre: Update to 0.9.0 #4934

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletions libtre-git/PKGBUILD → libtre/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Maintainer: Alexey Pavlov <[email protected]>

pkgname=("libtre-git" "libtre-devel-git")
_ver_base=0.8.0
pkgver=0.8.0.128.6fb7206
pkgrel=3
pkgname=("libtre" "libtre-devel")
pkgver=0.9.0
pkgrel=1
epoch=
pkgdesc="The free and portable approximate regex matching library (libraries)"
arch=("i686" "x86_64")
Expand All @@ -13,18 +12,12 @@ license=('BSD')
groups=('libraries')
depends=("gettext" "libiconv" "libintl")
makedepends=("gettext-devel" "libiconv-devel" "gcc" "git" 'autotools')
_commit="6fb7206b935b35814c5078c20046dbe065435363"
source=("${pkgname}"::"git+https://github.com/laurikari/tre#commit=${_commit}")
sha256sums=('SKIP')
source=("${pkgname}"::"git+https://github.com/laurikari/tre#tag=v${pkgver}")
sha256sums=('81ac859d391cfd1a240a23ac1b7bda51cee7b75103cf03015cea9ea0b3492c3d')
msys2_references=(
'archlinux: tre'
)

pkgver() {
cd "${srcdir}/${pkgname}"
printf "%s.%s.%s" "$_ver_base" "$(git rev-list --count "${_commit}")" "$(git rev-parse --short "${_commit}")"
}

prepare() {
cd "${srcdir}/${pkgname}"
mv -f ChangeLog.old ChangeLog
Expand All @@ -44,10 +37,11 @@ check() {
make -k check
}

package_libtre-git() {
package_libtre() {
depends=("gettext" "libiconv" "libintl")
provides=("libtre=${pkgver}")
conflicts=("libtre")
provides=("libtre-git=${pkgver}")
conflicts=("libtre-git")
replaces=("libtre-git")

mkdir -p $pkgdir/usr/bin
cp -rf $srcdir/dest/usr/bin $pkgdir/usr/
Expand All @@ -56,12 +50,13 @@ package_libtre-git() {
cp -rf $srcdir/dest/usr/share $pkgdir/usr/
}

package_libtre-devel-git() {
package_libtre-devel() {
pkgdesc="Libtre headers and libraries (development)"
groups=('development')
depends=("libtre-git=${pkgver}" "gettext-devel" "libiconv-devel")
provides=("libtre-devel")
conflicts=("libtre-devel")
depends=("libtre=${pkgver}" "gettext-devel" "libiconv-devel")
provides=("libtre-devel-git=${pkgver}")
conflicts=("libtre-devel-git")
replaces=("libtre-devel-git")

mkdir -p $pkgdir/usr
cp -rf $srcdir/dest/usr/include $pkgdir/usr/
Expand Down