upgpkg: libpamac-aur-1:11.7.4-1: new upstream release
This commit is contained in:
parent
13396701f9
commit
38a77606b6
2 changed files with 61 additions and 109 deletions
134
PKGBUILD
134
PKGBUILD
|
|
@ -5,123 +5,75 @@ ENABLE_FLATPAK=1
|
|||
ENABLE_SNAPD=0
|
||||
|
||||
pkgname=libpamac-aur
|
||||
pkgver=11.7.3
|
||||
pkgrel=5
|
||||
pkgver=11.7.4
|
||||
pkgrel=1
|
||||
epoch=1
|
||||
_pkgfixver=$pkgver
|
||||
_commit='84d9620dd707201b69d9516eda6ac789812efc66'
|
||||
b2sums=('31f250d2746abac114cb82858d0e541e75174c76fea4a4d00d05c2206f3b52ad91f272df7700e32ac9b557710481e85e7412f8e64ca12251fe661c8516cd5d87'
|
||||
'8107b9fa09bcb78d9f5cc60b3e57681c19013822eee2ec73d6ba41b35be2337cdeb15c8959879dea0c6022110328cd3ae373e2e9a0be6b29ea29220144ccea99'
|
||||
'e7c51e95d0a14ac872df803a15ba6afb96d500b0c9f274b5c34e994557a4b4b6bcbdb100172dd16d7862f97719927d6b313171ffc1a41046badc81dbbc6f4d16')
|
||||
|
||||
_commit='b260c6c28b076375ae80656072cd9bd74f0f6d63'
|
||||
sha256sums=('09291690324f8c50ea909dbb2a1895e7a330cd572d55dde2fd2a5a00954086fa'
|
||||
'6e0c25f0fcb0076ce78845b037e32925fcc3f1cd1670062c48ed35f564a10244'
|
||||
'b5236af02c25cd7de4b2c9c2d0f064dac3c2f54da5cc72bf72fc6236a34bd9c4')
|
||||
|
||||
pkgdesc="Pamac package manager library based on libalpm"
|
||||
arch=(
|
||||
i686
|
||||
x86_64
|
||||
arm
|
||||
armv6h
|
||||
armv7h
|
||||
aarch64
|
||||
)
|
||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
||||
url="https://github.com/manjaro/libpamac/"
|
||||
license=(
|
||||
GPL-3.0-or-later
|
||||
)
|
||||
depends=(
|
||||
'appstream'
|
||||
'appstream-glib>=0.7.18-1'
|
||||
archlinux-appstream-data
|
||||
dbus-glib
|
||||
git
|
||||
'glib2>=2.42'
|
||||
'gnutls>=3.4'
|
||||
json-glib
|
||||
'libalpm.so=15'
|
||||
libnotify
|
||||
libsoup3
|
||||
'pacman>=7.0'
|
||||
polkit
|
||||
'vte3>=0.38'
|
||||
)
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=('glib2>=2.42' 'json-glib' 'libsoup3' 'dbus-glib' 'polkit' 'vte3>=0.38' 'libalpm.so=15'
|
||||
'libnotify' 'pacman>=7.0' 'gnutls>=3.4' 'appstream'
|
||||
'appstream-glib>=0.7.18-1' 'archlinux-appstream-data' 'git')
|
||||
|
||||
makedepends=(
|
||||
asciidoc
|
||||
gettext
|
||||
gobject-introspection
|
||||
itstool
|
||||
meson
|
||||
ninja
|
||||
systemd
|
||||
'vala>=0.46'
|
||||
)
|
||||
backup=(
|
||||
'etc/pamac.conf'
|
||||
)
|
||||
conflicts=(
|
||||
libpamac
|
||||
libpamac-all
|
||||
)
|
||||
provides=(
|
||||
'libpamac.so=11'
|
||||
'libpamac-appstream.so=11'
|
||||
"libpamac=$_pkgfixver"
|
||||
)
|
||||
makedepends=('gettext' 'itstool' 'vala>=0.46' 'asciidoc' 'meson' 'ninja' 'gobject-introspection' 'systemd')
|
||||
backup=('etc/pamac.conf')
|
||||
conflicts=('libpamac' 'libpamac-all')
|
||||
provides=('libpamac.so=11' 'libpamac-appstream.so=11' "libpamac=$_pkgfixver")
|
||||
options=(!emptydirs !strip)
|
||||
install=pamac.install
|
||||
source=(
|
||||
"libpamac-$pkgver-$pkgrel.zip::$url/archive/$_commit.zip"
|
||||
'fix-appstream-data.sh'
|
||||
'fix-appstream-data.hook'
|
||||
)
|
||||
source=("libpamac-$pkgver-$pkgrel.zip::$url/archive/$_commit.zip"
|
||||
'fix-appstream-data.sh' 'fix-appstream-data.hook')
|
||||
|
||||
define_meson=''
|
||||
if [ "${ENABLE_FLATPAK}" = 1 ]; then
|
||||
depends+=('flatpak')
|
||||
define_meson+=-Denable-flatpak=true
|
||||
depends+=('flatpak')
|
||||
define_meson+=' -Denable-flatpak=true'
|
||||
fi
|
||||
|
||||
if [ "${ENABLE_SNAPD}" = 1 ]; then
|
||||
depends+=('snapd' 'snapd-glib')
|
||||
define_meson+=-Denable-snap=true
|
||||
depends+=('snapd' 'snapd-glib')
|
||||
define_meson+=' -Denable-snap=true'
|
||||
fi
|
||||
|
||||
create_links() {
|
||||
# create soname links
|
||||
find "$pkgdir" -type f -name '*.so*' ! -path '*xorg/*' -print0 | \
|
||||
while read -d $'\0' _lib; do
|
||||
_soname=$(dirname "${_lib}")/$(readelf -d "${_lib}" | \
|
||||
grep -Po 'SONAME.*: \[\K[^]]*' || true)
|
||||
_base=$(echo ${_soname} | sed -r 's/(.*)\.so.*/\1.so/')
|
||||
[[ -e "${_soname}" ]] || ln -s $(basename "${_lib}") "${_soname}"
|
||||
[[ -e "${_base}" ]] || ln -s $(basename "${_soname}") "${_base}"
|
||||
done
|
||||
# create soname links
|
||||
find "$pkgdir" -type f -name '*.so*' ! -path '*xorg/*' -print0 | while read -d $'\0' _lib; do
|
||||
_soname=$(dirname "${_lib}")/$(readelf -d "${_lib}" | grep -Po 'SONAME.*: \[\K[^]]*' || true)
|
||||
_base=$(echo ${_soname} | sed -r 's/(.*)\.so.*/\1.so/')
|
||||
[[ -e "${_soname}" ]] || ln -s $(basename "${_lib}") "${_soname}"
|
||||
[[ -e "${_base}" ]] || ln -s $(basename "${_soname}") "${_base}"
|
||||
done
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/libpamac-$_commit"
|
||||
# adjust version string
|
||||
sed -i -e "s|\"$_pkgfixver\"|\"$pkgver-$pkgrel\"|g" src/version.vala
|
||||
cd "$srcdir/libpamac-$_commit"
|
||||
# adjust version string
|
||||
sed -i -e "s|\"$_pkgfixver\"|\"$pkgver-$pkgrel\"|g" src/version.vala
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/libpamac-$_commit"
|
||||
arch-meson build \
|
||||
-Denable-aur=true \
|
||||
-Denable-appstream=true \
|
||||
"$define_meson"
|
||||
# build
|
||||
meson compile -C build
|
||||
cd "$srcdir/libpamac-$_commit"
|
||||
arch-meson build -Denable-aur=true -Denable-appstream=true $define_meson
|
||||
# build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/libpamac-$_commit"
|
||||
meson install -C build --no-rebuild --destdir "$pkgdir"
|
||||
# fix appstream issue
|
||||
install -Dm644 "$srcdir/fix-appstream-data.hook" \
|
||||
"$pkgdir/etc/pacman.d/hooks/fix-appstream-data.hook"
|
||||
install -Dm755 "$srcdir/fix-appstream-data.sh" \
|
||||
"$pkgdir/etc/pacman.d/hooks.bin/fix-appstream-data.sh"
|
||||
create_links
|
||||
cd "$srcdir/libpamac-$_commit"
|
||||
meson install -C build --no-rebuild --destdir "$pkgdir"
|
||||
# fix appstream issue
|
||||
install -Dm644 "$srcdir/fix-appstream-data.hook" "$pkgdir/etc/pacman.d/hooks/fix-appstream-data.hook"
|
||||
install -Dm755 "$srcdir/fix-appstream-data.sh" "$pkgdir/etc/pacman.d/hooks.bin/fix-appstream-data.sh"
|
||||
create_links
|
||||
|
||||
}
|
||||
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue