Commit e0c9f8e4 authored by Xuetian Weng's avatar Xuetian Weng

update lib32-systemd

parent 8319bc66
# Maintainer: AlmAck <almack@chakraos.org>
# Arch contributor: https://git.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/lib32-libelf
_pkgbasename=elfutils
pkgname=lib32-elfutils
pkgname=lib32-libelf
pkgver=0.170
pkgrel=2
pkgdesc="Collection of libraries for working with ELF object files and DWARF debugging information (32-bit)"
pkgrel=1
pkgdesc="Libraries to handle ELF object files and DWARF debugging information (32-bit)"
arch=('x86_64')
url="https://fedorahosted.org/elfutils/"
url="https://sourceware.org/elfutils/"
license=('LGPL3' 'GPL' 'GPL3')
depends=('lib32-bzip2' 'lib32-zlib' $_pkgbasename=$pkgver)
makedepends=('lib32-gcc-libs')
source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig})
depends=('lib32-bzip2' 'lib32-zlib' 'libelf')
makedepends=('gcc-multilib')
provides=('lib32-elfutils')
conflicts=('lib32-elfutils')
replaces=('lib32-elfutils')
source=(https://sourceware.org/elfutils/ftp/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig})
options=('staticlibs')
sha1sums=('aff6feac0ff69eb7b240babdf2918f640eadb032'
'SKIP')
sha256sums=('1f844775576b79bdc9f9c717a50058d08620323c1e935458223a12f249c9e066'
'SKIP')
validpgpkeys=('47CC0331081B8BC6D0FD4DA08370665B57816A6A') # Mark J. Wielaard <mark@klomp.org>
build() {
......
# Arch contributor: https://git.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/lib32-pcre2
pkgname=lib32-pcre2
_pkgname=pcre2
pkgver=10.31
pkgrel=1
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version (32-bit)'
arch=('x86_64')
url='http://www.pcre.org/'
license=('BSD')
depends=('lib32-gcc-libs' 'lib32-readline' 'lib32-zlib' 'lib32-bzip2' 'bash')
source=("ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$_pkgname-$pkgver.tar.bz2")
sha512sums=('44d7db2513d9415dcdf6541366fea585e016f572f3e4379f6e959a38114b2337851092049ab4a1576ae8f19b9de413edbcfa62f434c77fc8470747ee5413e967')
build() {
cd $_pkgname-$pkgver
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-jit \
--enable-pcre2grep-libz \
--enable-pcre2grep-libbz2 \
--enable-pcre2test-libreadline
make
}
check() {
cd $_pkgname-$pkgver
make -j1 check
}
package() {
cd $_pkgname-$pkgver
make DESTDIR="$pkgdir" install
rm -rf "${pkgdir}"/usr/{share,bin,include}
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
pkgname=lib32-systemd
_pkgbasename=systemd
# latest commit on stable branch
_commit='743b771c559c6101544f7358a42c8c519fe4b0db'
_commit='c58ab03f64890e7db88745a843bd4520e307099b'
# Bump this to latest major release for signed tag verification,
# the commit count is handled by pkgver() function.
pkgver=235.38
pkgrel=2
pkgver=238.51
pkgrel=1
pkgdesc="system and service manager (32-bit)"
arch=('x86_64')
url="https://www.github.com/systemd/systemd"
license=('GPL2' 'LGPL2.1')
depends=('lib32-libgcrypt' 'lib32-xz' 'lib32-libcap' 'lib32-gcc-libs' "$_pkgbasename=$pkgver")
makedepends=('lib32-gcc-libs' 'gcc-multilib' 'lib32-libidn' 'lib32-glib2' 'intltool' 'gperf'
'lib32-curl' 'lib32-bzip2' 'lib32-acl' 'lib32-gnutls' 'git' 'meson' 'libxslt')
depends=('lib32-gcc-libs' 'lib32-libcap' 'lib32-libgcrypt' 'lib32-xz' "$_pkgbasename=$pkgver")
makedepends=('gcc-multilib' 'git' 'gperf' 'intltool' 'lib32-acl' 'lib32-bzip2'
'lib32-curl' 'lib32-libdbus' 'lib32-gcc-libs' 'lib32-glib2'
'lib32-gnutls' 'lib32-libelf' 'lib32-libidn' 'lib32-pcre2'
'libxslt' 'meson')
options=('strip')
validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4') # Lennart Poettering <lennart@poettering.net>
source=('git://github.com/systemd/systemd-stable.git'
'git://github.com/systemd/systemd.git') # pull in for tags, backports & reverts
validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4' # Lennart Poettering <lennart@poettering.net>
'5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
source=('git+https://github.com/systemd/systemd-stable'
'git+https://github.com/systemd/systemd')
sha256sums=('SKIP'
'SKIP')
......@@ -26,9 +29,10 @@ _backports=(
_reverts=(
)
_validate_tag() {
_validate_tag() (
local success fingerprint trusted status tag=v${pkgver%.*}
cd "$srcdir/$_pkgbasename-stable"
parse_gpg_statusfile /dev/stdin < <(git verify-tag --raw "$tag" 2>&1)
if (( ! success )); then
......@@ -51,6 +55,22 @@ _validate_tag() {
esac
return 0
)
prepare() {
cd "$_pkgbasename-stable"
git remote rm upstream || true
git remote add -f upstream ../systemd
git checkout "$_commit"
local c
for c in "${_backports[@]}"; do
git cherry-pick -n "$c"
done
for c in "${_reverts[@]}"; do
git revert -n "$c"
done
}
pkgver() {
......@@ -58,33 +78,16 @@ pkgver() {
cd "$_pkgbasename-stable"
git checkout "${_commit}"
git checkout "$_commit"
version="$(git describe --abbrev=0 --tags)"
count="$(git rev-list --count ${version}..)"
printf '%s.%s' "${version#v}" "${count}"
}
prepare() {
cd "$_pkgbasename-stable"
git remote add upstream ../systemd/
git fetch --all
git checkout "${_commit}"
build() {
_validate_tag || return
local _commit
for _commit in "${_backports[@]}"; do
git cherry-pick -n "$_commit"
done
for _commit in "${_reverts[@]}"; do
git revert -n "$_commit"
done
}
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment