Skip to content

Commit

Permalink
add: meson-git (#6382)
Browse files Browse the repository at this point in the history
With issue : pacstall/pacstall#1231

Installing meson-git fail all pacscripts that have makedepends=(meson)
Removing pin auto installed by pacstall solve the issue.
  • Loading branch information
Xdavius authored Sep 10, 2024
1 parent 94219ff commit 5760ddb
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ mdbook-linkcheck
megabasterd-bin
megasync-deb
meson-focal-deb
meson-git
micro
microsoft-edge-beta-deb
microsoft-edge-dev-deb
Expand Down
27 changes: 27 additions & 0 deletions packages/meson-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
pkgbase = meson-git
gives = meson
pkgver = 1.5
pkgdesc = SCons-like build system that use python as a front-end language and Ninja as a building backend with debian-meson forked from arch-meson
url = http://mesonbuild.com/
arch = any
depends = python3
depends = ninja-build
makedepends = git
makedepends = python3-build
makedepends = python3-installer
makedepends = python3-setuptools
makedepends = python3-wheel
makedepends = ninja-build
makedepends = python3-tqdm
makedepends = python3-typing-extensions
maintainer = xdavius <[email protected]>
source = git+https://github.com/mesonbuild/meson
source = debian-meson
source = cross-lib32
source = native-clang
sha256sums = SKIP
sha256sums = eb944e481d3299bf9c3c79835697215885a32e0fc1f9c86e2b0699cdc4ee849e
sha256sums = ba2be3874b2a30901741363cbdf412b85da9fd333cadaff19fdd9c6d276ec555
sha256sums = b1c9b9e5d39f540ac1038a83e5716622d8e111b70be400a9a7c9561503ae03ac

pkgname = meson-git
21 changes: 21 additions & 0 deletions packages/meson-git/cross-lib32
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[binaries]
c = ['gcc', '-m32']
cpp = ['g++', '-m32']
rust = ['rustc', '--target', 'i686-unknown-linux-gnu']
pkgconfig = 'i686-linux-gnu-pkg-config'
cups-config = 'cups-config'
cmake = 'cmake'
strip = 'strip'
#llvm-config = 'llvm-config-15'
#clang = 'clang-15'

[built-in options]
libdir = 'lib/i386-linux-gnu'

[host_machine]
system = 'linux'
subsystem = 'linux'
kernel = 'linux'
cpu_family = 'x86'
cpu = 'i686'
endian = 'little'
13 changes: 13 additions & 0 deletions packages/meson-git/debian-meson
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -ex
# Highly opinionated wrapper for Debian/Ubuntu Linux packaging

exec meson setup \
--prefix /usr \
--libexecdir /usr/lib/x86_64-linux-gnu \
--sbindir /usr/sbin \
--buildtype plain \
--auto-features enabled \
--wrap-mode forcefallback \
-D b_pie=true \
-D python.bytecompile=1 \
"$@"
40 changes: 40 additions & 0 deletions packages/meson-git/meson-git.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
pkgname="meson-git"
gives="meson"
pkgver="1.5"
pkgdesc="SCons-like build system that use python as a front-end language and Ninja as a building backend with debian-meson forked from arch-meson"
arch=(any)
url='http://mesonbuild.com/'
depends=("python3" "ninja-build")
makedepends=(
"git"
"python3-build"
"python3-installer"
"python3-setuptools"
"python3-wheel"
"ninja-build"
"python3-tqdm"
"python3-typing-extensions"
)

source=("git+https://github.com/mesonbuild/meson"
"debian-meson"
"cross-lib32"
"native-clang")
sha256sums=("SKIP"
"eb944e481d3299bf9c3c79835697215885a32e0fc1f9c86e2b0699cdc4ee849e"
"ba2be3874b2a30901741363cbdf412b85da9fd333cadaff19fdd9c6d276ec555"
"b1c9b9e5d39f540ac1038a83e5716622d8e111b70be400a9a7c9561503ae03ac")
maintainer=("xdavius <[email protected]>")

package() {
cd "${srcdir}/${pkgname%-git}"
python3 setup.py install --root="${pkgdir}" --optimize=1
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
for _f in data/syntax-highlighting/vim/*/*; do
install -Dt "${pkgdir}/usr/share/vim/vimfiles/$(basename "$(dirname "${_f}")")" -m644 "${_f}"
done
install -Dt "${pkgdir}/usr/share/zsh/site-functions" -m644 data/shell-completions/zsh/*
install -Dm755 ../debian-meson -t "${pkgdir}/usr/bin"
install -Dm644 ../cross-lib32 "${pkgdir}/usr/share/meson/cross/lib32"
install -Dm644 ../native-clang "${pkgdir}/usr/share/meson/native/clang"
}
6 changes: 6 additions & 0 deletions packages/meson-git/native-clang
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[binaries]
c = 'clang-15'
cpp = 'clang++-15'
c_ld = 'lld'
cpp_ld = 'lld'
rust_ld = 'clang-15'
28 changes: 28 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -6013,6 +6013,34 @@ pkgbase = meson-focal-deb

pkgname = meson-focal-deb
---
pkgbase = meson-git
gives = meson
pkgver = 1.5
pkgdesc = SCons-like build system that use python as a front-end language and Ninja as a building backend with debian-meson forked from arch-meson
url = http://mesonbuild.com/
arch = any
depends = python3
depends = ninja-build
makedepends = git
makedepends = python3-build
makedepends = python3-installer
makedepends = python3-setuptools
makedepends = python3-wheel
makedepends = ninja-build
makedepends = python3-tqdm
makedepends = python3-typing-extensions
maintainer = xdavius <[email protected]>
source = git+https://github.com/mesonbuild/meson
source = debian-meson
source = cross-lib32
source = native-clang
sha256sums = SKIP
sha256sums = eb944e481d3299bf9c3c79835697215885a32e0fc1f9c86e2b0699cdc4ee849e
sha256sums = ba2be3874b2a30901741363cbdf412b85da9fd333cadaff19fdd9c6d276ec555
sha256sums = b1c9b9e5d39f540ac1038a83e5716622d8e111b70be400a9a7c9561503ae03ac

pkgname = meson-git
---
pkgbase = micro
pkgver = 2.0.13
pkgdesc = A modern and intuitive terminal-based text editor
Expand Down

0 comments on commit 5760ddb

Please sign in to comment.