refactored pkgbuilds

This commit is contained in:
Sohrab Behdani 2024-06-08 11:07:21 +03:30
parent 1de3acc92b
commit 0f229abe5d
20 changed files with 408 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#Maintainer: ParchLinux
pkgname=blackarch-mirrors
destname="/usr/bin"
pkgver=1
pkgrel=5
pkgdesc="blackarch mirrors for parchlinux"
arch=('any')
url="https://github.com/parchlinux"
license=('GPL3')
makedepends=('git')
provides=("${pkgname}")
options=(!strip !emptydirs)
install=blackarch.install
source=("blackarch-install")
sha256sums=('6dad83a88319983b297d05c24120be9a3666c157d0c285f3bf5f0666cb005dff')
package() {
depends+=('curl')
install -Dm 755 ./blackarch-install "${pkgdir}/usr/bin/blackarch-install"
}

View file

@ -0,0 +1,10 @@
#!/bin/bash
cd /tmp
curl -O https://blackarch.org/strap.sh
# verify script with blackarch itself
echo 26849980b35a42e6e192c6d9ed8c46f0d6d06047 strap.sh | sha1sum -c
chmod +x strap.sh
bash -c strap.sh

View file

@ -0,0 +1,9 @@
pre_install() {
cp /etc/pacman.conf /etc/pacman.conf.back
}
post_install() {
echo "run sudo blackarch-install to install the mirrors and keyrings."
}
post_remove() {
mv /etc/pacman.conf.back /etc/pacman.conf
}

23
chaotic-aur/PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
#Maintainer: ParchLinux
pkgname=chaotic-aur
destname="/usr/bin"
pkgver=1
pkgrel=0
pkgdesc="chaotic aur for parchlinux"
arch=('any')
url="https://github.com/parchlinux"
license=('GPL3')
makedepends=('git')
conflicts=('blackarch-mirrors')
provides=("${pkgname}")
options=(!strip !emptydirs)
install=chaotic.install
source=("chaotic-install")
sha256sums=('7b7f0063bd04e151995f06832198a4a005de00aca18b6b04dacad0052e370511')
package() {
depends+=('curl')
install -Dm 755 ./chaotic-install "${pkgdir}/usr/bin/chaotic-install"
}

5
chaotic-aur/chaotic-install Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com &&
pacman-key --lsign-key 3056513887B78AEB &&
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' --noconfirm &&
echo -e "[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf

View file

@ -0,0 +1,9 @@
pre_install() {
cp /etc/pacman.conf /etc/pacman.conf.back
}
post_install() {
echo "run sudo chaotic-install to install the mirrors and keyrings."
}
post_remove() {
mv /etc/pacman.conf.back /etc/pacman.conf
}

View file

@ -0,0 +1,55 @@
pkgbase = gnome-software-git
pkgdesc = GNOME Software Tools
pkgver = 42.0+r367+g0c3e21d1a
pkgrel = 1
url = https://wiki.gnome.org/Apps/Software/
arch = x86_64
arch = aarch64
license = GPL2
makedepends = appstream
makedepends = docbook-xsl
makedepends = flatpak
makedepends = fwupd
makedepends = git
makedepends = gnome-online-accounts
makedepends = gobject-introspection
makedepends = gsettings-desktop-schemas
makedepends = gspell
makedepends = gtk-doc
makedepends = libadwaita
makedepends = libpackagekit-glib
makedepends = libsysprof-capture
makedepends = libxmlb
makedepends = malcontent
makedepends = meson
makedepends = valgrind
provides = gnome-software
provides = gnome-software-packagekit-plugin
conflicts = gnome-software
conflicts = gnome-software-packagekit-plugin
source = git+https://gitlab.gnome.org/GNOME/gnome-software.git
b2sums = SKIP
pkgname = gnome-software-git
groups = gnome
depends = appstream
depends = gnome-online-accounts
depends = gsettings-desktop-schemas
depends = gspell
depends = libadwaita
depends = libpackagekit-glib
depends = libsysprof-capture
depends = libxmlb
optdepends = flatpak: Flatpak support plugin
optdepends = fwupd: fwupd support plugin
optdepends = malcontent: Parental control plugin
provides = gnome-software
conflicts = gnome-software
pkgname = gnome-software-packagekit-plugin-git
pkgdesc = PackageKit support plugin for GNOME Software
depends = archlinux-appstream-data
depends = gnome-software-git
depends = packagekit
provides = gnome-software-packagekit-plugin
conflicts = gnome-software-packagekit-plugin

View file

@ -0,0 +1,99 @@
# Maintainer: Philip Goto <philip.goto@gmail.com>
pkgbase=gnome-software-git
pkgname=(gnome-software-packagekit gnome-software-packagekit-plugin)
pkgver=46.2+r6+gefeba25bf
pkgrel=1
pkgdesc='GNOME Software Tools'
arch=(x86_64 aarch64)
url='https://wiki.gnome.org/Apps/Software/'
license=(GPL2)
makedepends=(
appstream
docbook-xsl
flatpak
fwupd
git
gnome-online-accounts
gobject-introspection
gsettings-desktop-schemas
gspell
gtk-doc
libadwaita
libpackagekit-glib
libsysprof-capture
libxmlb
malcontent
meson
valgrind
)
provides=(gnome-software-packagekit gnome-software-packagekit-plugin)
conflicts=(gnome-software)
source=(git+https://gitlab.gnome.org/GNOME/gnome-software.git#branch=gnome-46)
b2sums=(SKIP)
pkgver() {
cd gnome-software
git describe --long --tags | sed 's/^GNOME_SOFTWARE_//;s/_/./g;s/[^-]*-g/r&/;s/-/+/g'
}
build() {
# Ensure static library is non-LTO compatible
CFLAGS+=" -ffat-lto-objects"
arch-meson gnome-software build -D soup2=true \
-D hardcoded_foss_webapps=false -D hardcoded_proprietary_webapps=false -D webapps=false
meson compile -C build
}
check() {
# build container troubles
meson test -C build --print-errorlogs || :
}
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_gnome-software-packagekit() {
groups=(gnome)
depends=(
appstream
gnome-online-accounts
gsettings-desktop-schemas
gspell
libadwaita
libpackagekit-glib
libsysprof-capture
libxmlb
)
optdepends=(
'flatpak: Flatpak support plugin'
'fwupd: fwupd support plugin'
'malcontent: Parental control plugin'
)
provides=(gnome-software-packagekit)
conflicts=(gnome-software)
meson install -C build --destdir "$pkgdir"
local pkglibdir="$pkgdir/usr/lib/gnome-software"
_pick packagekit-plugin "$pkglibdir"/plugins-*/libgs_plugin_packagekit*.so
}
package_gnome-software-packagekit-plugin() {
pkgdesc="PackageKit support plugin for GNOME Software"
depends=(
archlinux-appstream-data
gnome-software-packagekit
packagekit
)
provides=(gnome-software-packagekit-plugin)
mv packagekit-plugin/* "$pkgdir"
}

20
parch-bluetooth/PKGBUILD Normal file
View file

@ -0,0 +1,20 @@
#Maintainer: ParchLinux
pkgname=parch-bluetooth
destname="/usr"
pkgver=1
pkgrel=0
pkgdesc="Parch Linux Bluetooth support meta package"
arch=('any')
url="https://github.com/parchlinux"
license=('GPL3')
makedepends=('git')
conflicts=()
provides=("${pkgname}")
options=(!strip !emptydirs)
install=bluetooth.install
#source=("file.zip")
#sha256sums=('SKIP')
package() {
depends+=('bluez' 'bluez-utils')
}

View file

@ -0,0 +1,3 @@
post_install() {
systemctl enable bluetooth
}

22
parch-mpv/PKGBUILD Normal file
View file

@ -0,0 +1,22 @@
#Maintainer: ParchLinux
pkgname=parch-mpv
destname="/etc"
pkgver=1
pkgrel=1
pkgdesc="mpv config for parchlinux by Pakrohk"
arch=('any')
url="https://github.com/parchlinux/parch-mpv"
license=('GPL3')
makedepends=()
depends=('mpv')
conflicts=()
provides=("${pkgname}")
options=(!strip !emptydirs)
#install=parch.install
source=("git+https://github.com/parchlinux/parch-mpv.git")
sha256sums=('SKIP')
package() {
install -dm755 ${pkgdir}${destname}
cp -r ${srcdir}/${pkgname}${destname}/* ${pkgdir}${destname}
}

18
parch-nix/PKGBUILD Normal file
View file

@ -0,0 +1,18 @@
#Maintainer: ParchLinux
pkgname=parch-nix
pkgver=1
pkgrel=0
pkgdesc="Parch Linux NIX support meta package"
arch=('any')
url="https://github.com/parchlinux"
license=('GPL3')
makedepends=('git')
conflicts=()
provides=("${pkgname}")
options=(!strip !emptydirs)
install=nix.install
package() {
depends+=('nix')
}

10
parch-nix/nix.install Normal file
View file

@ -0,0 +1,10 @@
post_install() {
systemctl enable nix-daemon.service
systemctl start nix-daemon.service
echo "Run this commands after installing nix"
echo "sudo usermod -aG nix-users \$(whoami)"
echo "Reboot so that the above changes take effect then run this:"
echo "nix-channel --add https://nixos.org/channels/nixpkgs-unstable"
echo "nix-channel --update"
echo "Happy hacking :)"
}

21
parch-plymouth/PKGBUILD Normal file
View file

@ -0,0 +1,21 @@
#Maintainer: ParchLinux
pkgname=parch-plymouth
destname="/usr"
pkgver=2
pkgrel=0
pkgdesc="Parch Linux plymoyth support meta package"
arch=('any')
url="https://github.com/parchlinux"
license=('GPL3')
makedepends=('git')
depends=('plymouth')
conflicts=()
provides=("${pkgname}")
options=(!strip !emptydirs)
install=parch.install
source=("git+https://github.com/parchlinux/parch-plymouth.git")
sha256sums=('SKIP')
package() {
install -dm755 ${pkgdir}${destname}
cp -r ${srcdir}/${pkgname}${destname}/* ${pkgdir}${destname}
}

View file

@ -0,0 +1,3 @@
post_install() {
plymouth-set-default-theme -R parch
}

22
parch-printer/PKGBUILD Normal file
View file

@ -0,0 +1,22 @@
#Maintainer: ParchLinux
pkgname=parch-printer
pkgver=1
pkgrel=0
pkgdesc="Parch Linux printer support meta package"
arch=('any')
url="https://github.com/parchlinux"
license=('GPL3')
makedepends=('git')
conflicts=()
provides=("${pkgname}")
options=(!strip !emptydirs)
install=printer.install
package() {
depends+=('cups'
'foomatic-db-engine'
'foomatic-db'
'foomatic-db-nonfree'
'foomatic-db-ppds'
'foomatic-db-nonfree-ppds')
}

View file

@ -0,0 +1,3 @@
post_install() {
systemctl enable cups
}

30
parch-tweaks/PKGBUILD Normal file
View file

@ -0,0 +1,30 @@
# Maintainer: ParchLinux
pkgname=parch-tweaks
pkgver=2.0.0
pkgrel=1
pkgdesc="Tweak application for Parch Linux"
arch=('x86_64')
url="https://github.com/parchlinux/parch-tweaks"
license=('GPL-3')
depends=('gcc-libs')
makedepends=('git' 'rust')
source=("$pkgname::git+$url#branch=main")
md5sums=('SKIP')
build() {
cd "$srcdir/$pkgname"
cargo build --release
}
package() {
cd "$srcdir/$pkgname"
# copy license
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# install binary
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
}

21
parchinstaller/PKGBUILD Normal file
View file

@ -0,0 +1,21 @@
# Maintainer: Parchlinux
pkgname=parchinstall
destname="/"
pkgver=0
pkgrel=2
pkgdesc="parchlinux custom installer"
arch=('any')
url="https://github.com/parchlinux"
license=('GPL3')
makedepends=()
depends=()
install=parch.install
conflicts=()
provides=("${pkgname}")
options=(!strip !emptydirs)
source=("git+https://github.com/parchlinux/parchinstall")
sha256sums=('SKIP')
package() {
install -dm755 ${pkgdir}${destname}
cp -r ${srcdir}/${pkgname}${destname}/* ${pkgdir}${destname}
}

View file

@ -0,0 +1,3 @@
post_install() {
ln -s /usr/share/parchinstaller/setup /usr/bin/parchinstaller
}