add pacopts

This commit is contained in:
joborun linux 2024-03-14 20:12:44 +02:00
parent e80c3f6ab1
commit fac5e71e59
6 changed files with 119 additions and 95 deletions

View File

@ -1,95 +0,0 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libpamac
pkgver=11.6.3
_pkgrel=0
pkgrel=01
_pkgfixver=$pkgver
_commit='dff0d861a492e0dcbfb03b134cf737e627315d52'
pkgdesc="Pamac package manager library based on libalpm no snap no flatpak no systemd"
url="https://gitlab.manjaro.org/applications/libpamac"
replaces=('libpamac-aur')
makedepends=('gettext' 'itstool' 'vala>=0.46' 'asciidoc' 'meson' 'ninja' 'gobject-introspection' 'appstream')
backup=('etc/pamac.conf')
conflicts=('libpamac-aur' 'libpamac-all' 'libpamac-git')
provides=('libpamac')
options=(!emptydirs !strip)
#install=pamac.install ## systemd timer ..etc
source=("libpamac-$pkgver-$_pkgrel.tar.gz::$url/-/archive/$_commit/libpamac-$_commit.tar.gz"
fix-appstream-data.sh
fix-appstream-data.hook)
ENABLE_FLATPAK=0
ENABLE_SNAPD=0
define_meson=''
if [ "${ENABLE_FLATPAK}" = 1 ]; then
depends+=('flatpak')
define_meson+=' -Denable-flatpak=true'
fi
if [ "${ENABLE_SNAPD}" = 1 ]; then
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
}
prepare() {
cd "$srcdir/libpamac-$_commit"
# adjust version string
sed -i -e "s|\"$_pkgfixver\"|\"$pkgver-$_pkgrel\"|g" src/version.vala
}
build() {
cd "$srcdir/libpamac-$_commit"
mkdir -p builddir
cd builddir
meson setup --buildtype=release \
--prefix=/usr \
-Denable-aur=true \
-Denable-appstream=true \
-Dsysconfdir=/etc
$define_meson
# build
meson compile
}
package() {
cd "$srcdir/libpamac-$_commit/builddir"
DESTDIR="$pkgdir" ninja install
depends=('glib2>=2.42' 'json-glib' 'libsoup3' 'dbus-glib' 'polkit' 'vte3>=0.38'
'libalpm.so' 'libnotify' 'pacman<6.1' 'gnutls>=3.4' 'git' 'appstream'
'appstream-glib>=0.7.18-1' 'archlinux-appstream-data')
# 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
rm -rf $pkgdir/usr/lib/systemd
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL3')
sha256sums=(965ea2c39b3999bb0ac5ec75da150d43fdd35deb02c0c113deef84e96ee636de # libpamac-11.6.3-0.tar.gz
6e0c25f0fcb0076ce78845b037e32925fcc3f1cd1670062c48ed35f564a10244 # fix-appstream-data.sh
b5236af02c25cd7de4b2c9c2d0f064dac3c2f54da5cc72bf72fc6236a34bd9c4) # fix-appstream-data.hook
## 60fbbc72c2e3ff71f483a3b51de4482f9d64c6de2130c18f7a28b61a99026311 libpamac-11.6.3-01-x86_64.pkg.tar.lz

41
pacopts/PKGBUILD Normal file
View File

@ -0,0 +1,41 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pacopts
pkgdesc='A script to handle packages in conjonction with pacman'
pkgver=0.2.2
pkgrel=03
url='https://git.obarun.org/obdev/pacopts.git'
track="tag"
target="v${pkgver}"
source=("${pkgname}::git+${url}#${track}=${target}")
makedepends=( git )
depends=('bash' 'pacman' 'cower' 'obarun-libs' 'expac') # 'oblog'
backup=('etc/obarun/pacopts.conf')
build() {
cd "$pkgname"
./configure --prefix=/usr
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
install -Dm 0644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('ISC')
sha256sums=(SKIP)
## 034d164bc55e171ca15f8d42711fd5b2a232164b307914e6ea6845ba328d4bb7 pacopts-0.2.2-03-x86_64.pkg.tar.lz

65
pacopts/PKGBUILD-oba Normal file
View File

@ -0,0 +1,65 @@
# Obarun : 66 init/supervisor
# Maintainer : Eric Vidal <eric@obarun.org>
# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org>
# PkgSource : url="https://git.obarun.org/pkg/obextra/pacopts"
#-----------------------------------------------------------------------------------------------
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pacopts
pkgdesc='A scripts to handle packages in conjonction with pacman'
pkgver=0.2.2
pkgrel=2
url='https://git.obarun.org/obdev/pacopts.git'
track="tag"
target="v${pkgver}"
source=("${pkgname}::git+${url}#${track}=${target}")
#-------------------------------------| BUILD CONFIGURATION |-----------------------------------
makedepends=(
'git'
)
build() {
cd "$pkgname"
./configure --prefix=/usr
make
}
#-------------------------------------------| PACKAGE |-----------------------------------------
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
install -Dm 0644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}
#------------------------------------| INSTALL CONFIGURATION |----------------------------------
arch=(x86_64)
depends=(
'bash'
'pacman'
'cower'
'obarun-libs'
'expac'
'oblog'
)
backup=('etc/obarun/pacopts.conf')
#-------------------------------------| SECURITY AND LICENCE |----------------------------------
sha1sums=('SKIP')
license=('ISC')

1
pacopts/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,pacopts}

6
pacopts/deps Normal file
View File

@ -0,0 +1,6 @@
obarun-libs
expac
git
cower

6
pacopts/time Normal file
View File

@ -0,0 +1,6 @@
real 0m2.239s
user 0m1.529s
sys 0m0.433s