Skip to content

Commit

Permalink
refactor(*)!: convert pacscripts to 5.0.0 format
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer committed May 1, 2024
1 parent fc74c92 commit 788c64f
Show file tree
Hide file tree
Showing 541 changed files with 4,595 additions and 4,527 deletions.
16 changes: 8 additions & 8 deletions packages/1password-cli-bin/1password-cli-bin.pacscript
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name="1password-cli-bin"
pkgname="1password-cli"
gives="op"
repology=("project: ${pkgname}")
pkgname="1password-cli-bin"
gives="1password-cli"
repology=("project: ${gives}")
pkgver="2.25.0"
url="https://cache.agilebits.com/dist/1P/op2/pkg/v${pkgver}/${gives}_linux_amd64_v${pkgver}.zip"
source=("https://cache.agilebits.com/dist/1P/op2/pkg/v${pkgver}/${gives}_linux_amd64_v${pkgver}.zip")
pkgdesc="1Password CLI"
hash="6d6c85b23500b3167f80affd4dea6ed71abbee309ffdc9ca1d2689614b2c9d89"
sha256sums=("6d6c85b23500b3167f80affd4dea6ed71abbee309ffdc9ca1d2689614b2c9d89")
arch=('amd64')
maintainer="Oren Klopfer <[email protected]>"
maintainer=("Oren Klopfer <[email protected]>")

package() {
sudo install -Dm755 "${gives}" -t "${pkgdir}/usr/bin"
cd "${_archive}"
install -Dm755 "${gives}" -t "${pkgdir}/usr/bin"
}
14 changes: 7 additions & 7 deletions packages/adapta-gtk-theme-git/adapta-gtk-theme-git.pacscript
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name="adapta-gtk-theme-git"
pkgname="adapta-gtk-theme-git"
gives="adapta-gtk-theme"
breaks=("adapta")
url="https://github.com/adapta-project/${gives}.git"
source=("https://github.com/adapta-project/${gives}.git")
pkgver="3.95.0.11"
makedepends=("parallel" "autoconf" "automake" "inkscape" "libgdk-pixbuf2.0-dev" "libglib2.0-dev" "libxml2-utils" "pkg-config" "sassc")
pkgdesc="An adaptive Gtk+ theme based on Material Design Guidelines (Legacy)"
maintainer="Elsie19 <[email protected]>"
pkgver() {
git ls-remote "${url}" master | cut -f1 | head -n1 | cut -c1-8
}
maintainer=("Elsie19 <[email protected]>")

prepare() {
cd "${_archive}"
./autogen.sh --prefix=/usr --enable-parallel
}

build() {
cd "${_archive}"
make -j"${NCPU}"
}

package() {
sudo make install DESTDIR="${pkgdir}"
cd "${_archive}"
make install DESTDIR="${pkgdir}"
}
22 changes: 12 additions & 10 deletions packages/adw-gtk3/adw-gtk3.pacscript
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name="adw-gtk3"
pkgname="adw-gtk3"
arch=('any')
pkgver="5.3"
pkgdesc="An unofficial GTK3 port of libadwaita."
repology=("project: adw-gtk3" "repo: aur")
url="https://github.com/lassekongo83/adw-gtk3/releases/download/v${pkgver}/${name}v${pkgver}.tar.xz"
hash="2e6e87935bef30936e40d07c7af4fd20754e77917be224f61c4346867196bef0"
maintainer="Herisson <[email protected]>"
gives="${name}"
breaks=("${name}" "${name}-git")
source=("https://github.com/lassekongo83/adw-gtk3/releases/download/v${pkgver}/${pkgname}v${pkgver}.tar.xz")
sha256sums=("2e6e87935bef30936e40d07c7af4fd20754e77917be224f61c4346867196bef0")
maintainer=("Herisson <[email protected]>")
gives="${pkgname}"
breaks=("${pkgname}" "${pkgname}-git")

build() {
sudo mkdir -p "${pkgdir}/usr/share/themes/${name}"
sudo mkdir -p "${pkgdir}/usr/share/themes/${name}-dark"
cd "${_archive}"
mkdir -p "${pkgdir}/usr/share/themes/${pkgname}"
mkdir -p "${pkgdir}/usr/share/themes/${pkgname}-dark"
}

package() {
sudo cp -r "${name}"/* "${pkgdir}/usr/share/themes/${name}/"
sudo cp -r "${name}"-dark/* "${pkgdir}/usr/share/themes/${name}-dark/"
cd "${_archive}"
cp -r "${pkgname}"/* "${pkgdir}/usr/share/themes/${pkgname}/"
cp -r "${pkgname}"-dark/* "${pkgdir}/usr/share/themes/${pkgname}-dark/"
}
32 changes: 17 additions & 15 deletions packages/alacritty/alacritty.pacscript
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
name="alacritty"
pkgname="alacritty"
pkgver="0.13.2"
repology=("project: alacritty")
url="https://github.com/alacritty/alacritty/archive/refs/tags/v${pkgver}.tar.gz"
source=("https://github.com/alacritty/alacritty/archive/refs/tags/v${pkgver}.tar.gz")
makedepends=("cargo" "cmake" "pkg-config" "libfreetype6-dev" "libfontconfig1-dev" "libxcb-xfixes0-dev" "python3" "gzip" "scdoc")
pkgdesc="A fast, cross-platform, OpenGL terminal emulator"
maintainer="Warofzen <[email protected]>"
maintainer=("Warofzen <[email protected]>")
incompatible=('debian:bullseye' 'debian:bookworm')
hash="e9a54aabc92bbdc25ab1659c2e5a1e9b76f27d101342c8219cc98a730fd46d90"
sha256sums=("e9a54aabc92bbdc25ab1659c2e5a1e9b76f27d101342c8219cc98a730fd46d90")

build() {
cd "${_archive}"
cargo build -j"${NCPU}" --release --locked
}

package() {
sudo install -Dm755 target/release/alacritty -t "${pkgdir}/usr/bin"
cd "${_archive}"
install -Dm755 target/release/alacritty -t "${pkgdir}/usr/bin"

sudo install -Dm644 extra/logo/alacritty-term.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/Alacritty.svg"
install -Dm644 extra/logo/alacritty-term.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/Alacritty.svg"

sudo install -Dm644 extra/linux/Alacritty.desktop -t "${pkgdir}/usr/share/applications"
install -Dm644 extra/linux/Alacritty.desktop -t "${pkgdir}/usr/share/applications"

sudo install -Dm644 extra/completions/alacritty.bash "${pkgdir}/usr/share/bash-completion/completions/alacritty"
sudo install -Dm644 extra/completions/alacritty.fish -t "${pkgdir}/usr/share/fish/vendor_completions.d"
sudo install -Dm644 extra/completions/_alacritty -t "${pkgdir}/usr/share/zsh/vendor-completions"
install -Dm644 extra/completions/alacritty.bash "${pkgdir}/usr/share/bash-completion/completions/alacritty"
install -Dm644 extra/completions/alacritty.fish -t "${pkgdir}/usr/share/fish/vendor_completions.d"
install -Dm644 extra/completions/_alacritty -t "${pkgdir}/usr/share/zsh/vendor-completions"

sudo mkdir -p "${pkgdir}/usr/local/share/man/man1" "${pkgdir}/usr/local/share/man/man5"
scdoc < extra/man/alacritty.1.scd | gzip -c | sudo tee "${pkgdir}/usr/local/share/man/man1/alacritty.1.gz" > /dev/null
scdoc < extra/man/alacritty-msg.1.scd | gzip -c | sudo tee "${pkgdir}/usr/local/share/man/man1/alacritty-msg.1.gz" > /dev/null
scdoc < extra/man/alacritty.5.scd | gzip -c | sudo tee "${pkgdir}/usr/local/share/man/man5/alacritty.5.gz" > /dev/null
scdoc < extra/man/alacritty-bindings.5.scd | gzip -c | sudo tee "${pkgdir}/usr/local/share/man/man5/alacritty-bindings.5.gz" > /dev/null
mkdir -p "${pkgdir}/usr/local/share/man/man1" "${pkgdir}/usr/local/share/man/man5"
scdoc < extra/man/alacritty.1.scd | gzip -c | tee "${pkgdir}/usr/local/share/man/man1/alacritty.1.gz" > /dev/null
scdoc < extra/man/alacritty-msg.1.scd | gzip -c | tee "${pkgdir}/usr/local/share/man/man1/alacritty-msg.1.gz" > /dev/null
scdoc < extra/man/alacritty.5.scd | gzip -c | tee "${pkgdir}/usr/local/share/man/man5/alacritty.5.gz" > /dev/null
scdoc < extra/man/alacritty-bindings.5.scd | gzip -c | tee "${pkgdir}/usr/local/share/man/man5/alacritty-bindings.5.gz" > /dev/null
}
43 changes: 19 additions & 24 deletions packages/amfora-bin/amfora-bin.pacscript
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
name="amfora-bin"
pkgname="amfora"
pkgname="amfora-bin"
gives="amfora"
pkgver="1.10.0"
gives="${pkgname}"
breaks=("${pkgname}" "${pkgname}-git" "${pkgname}-deb" "${pkgname}-app")
breaks=("${gives}" "${gives}-git" "${gives}-deb" "${gives}-app")
pkgdesc="Amfora aims to be the best looking Gemini client with the most features"
hash="b2e9e50954345b38c4481e200944950675d30cdd4e1d7eef50d5b3a528cc1a0a"
url="https://github.com/makeworld-the-better-one/amfora/releases/download/v${pkgver}/amfora_${pkgver}_linux_64-bit"
maintainer="Elsie19 <[email protected]>"
repology=("project: ${pkgname}")

prepare() {
wget -q https://roboticoverlords.org/amfora.png
if [[ "$(sha256sum amfora.png | cut -d' ' -f 1)" != "3d029d05cff8c42e82685ce7a61fcaa2118e4cbb6a547816a7d5150868a11092" ]]; then
fancy_message error "Checksum for amfora.png failed"
return 1
fi
wget -q https://raw.githubusercontent.com/makeworld-the-better-one/amfora/master/amfora.desktop
if [[ "$(sha256sum amfora.desktop | cut -d' ' -f 1)" != "812e1faad6f6d4817eac60d36813472afebe2980cd2e661151a3d98669274207" ]]; then
fancy_message error "Checksum for amfora.desktop failed"
return 1
fi
}
sha256sums=(
"b2e9e50954345b38c4481e200944950675d30cdd4e1d7eef50d5b3a528cc1a0a"
"3d029d05cff8c42e82685ce7a61fcaa2118e4cbb6a547816a7d5150868a11092"
"812e1faad6f6d4817eac60d36813472afebe2980cd2e661151a3d98669274207"
)
source=(
"https://github.com/makeworld-the-better-one/amfora/releases/download/v${pkgver}/amfora_${pkgver}_linux_64-bit"
"amfora.png::https://roboticoverlords.org/amfora.png"
"amfora.desktop::https://raw.githubusercontent.com/makeworld-the-betterne/amfora/master/amfora.desktop"
)
maintainer=("Elsie19 <[email protected]>")
repology=("project: ${gives}")

package() {
sudo install -Dm644 amfora.png "${pkgdir}/usr/share/pixmaps/amfora.png"
sudo install -Dm644 amfora.desktop "${pkgdir}/usr/share/applications/amfora.desktop"
sudo install -Dm755 "amfora_${pkgver}_linux_64-bit" "${pkgdir}/usr/bin/${pkgname}"
cd "${_archive}"
install -Dm644 "${srcdir}"/amfora.png "${pkgdir}/usr/share/pixmaps/amfora.png"
install -Dm644 "${srcdir}"/amfora.desktop "${pkgdir}/usr/share/applications/amfora.desktop"
install -Dm755 "amfora_${pkgver}_linux_64-bit" "${pkgdir}/usr/bin/${gives}"
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
name="an-anime-game-launcher-bin"
pkgname="an-anime-game-launcher"
pkgname="an-anime-game-launcher-bin"
gives="an-anime-game-launcher"
pkgver="3.9.5"
pkgdesc="Launcher for a specific anime game with auto-patching, discord rpc and time tracking"
repology=("project: an-anime-game-launcher")
url="https://github.com/an-anime-team/an-anime-game-launcher/releases/download/${pkgver}/anime-game-launcher"
hash="b6a036ec76d4fc2573263fad61ff3ed1e937fa8bdf3e0cddfd79a8cd65e9bb55"
source=(
"https://github.com/an-anime-team/an-anime-game-launcher/releases/download/${pkgver}/anime-game-launcher"
"icon.png::https://raw.githubusercontent.com/an-anime-team/an-anime-game-launcher/main/assets/images/icon.png"
)
sha256sums=(
"b6a036ec76d4fc2573263fad61ff3ed1e937fa8bdf3e0cddfd79a8cd65e9bb55"
"SKIP"
)
depends=("xdelta3")
maintainer="Elsie19 <[email protected]>"
gives="${pkgname}"
maintainer=("Elsie19 <[email protected]>")
incompatible=("ubuntu:bionic" "ubuntu:focal" "ubuntu:jammy" "ubuntu:kinetic" "debian:stretch" "debian:buster" "debian:bullseye")
breaks=("${pkgname}" "${pkgname}-deb" "${pkgname}-app" "${pkgname}-git")
breaks=("${gives}" "${gives}-deb" "${gives}-app" "${gives}-git")

optdepends=(
"mangohud: FPS Hud/GUI"
Expand All @@ -19,18 +24,18 @@ optdepends=(
)

package() {
sudo install -Dm755 "anime-game-launcher" "${pkgdir}/usr/bin/${pkgname}"
sudo mkdir -p "${pkgdir}/usr/share/applications"
cd "${_archive}"
install -Dm755 "anime-game-launcher" "${pkgdir}/usr/bin/${gives}"
mkdir -p "${pkgdir}/usr/share/applications"
echo '[Desktop Entry]
Name=An Anime Game Launcher
Icon=an-anime-game-launcher
Exec=an-anime-game-launcher
Type=Application
Categories=Game;
Terminal=false
X-AppImage-Version=2.4.2' | sudo tee "${pkgdir}/usr/share/applications/an-anime-game-launcher.desktop" > /dev/null
wget -q https://raw.githubusercontent.com/an-anime-team/an-anime-game-launcher/main/assets/images/icon.png
sudo install -Dm644 "icon.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/an-anime-game-launcher.png"
X-AppImage-Version=2.4.2' | tee "${pkgdir}/usr/share/applications/an-anime-game-launcher.desktop" > /dev/null
install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/an-anime-game-launcher.png"

}

Expand Down
12 changes: 7 additions & 5 deletions packages/ananicy-cpp/ananicy-cpp.pacscript
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name="ananicy-cpp"
pkgname="ananicy-cpp"
pkgver="1.1.0"
url="https://gitlab.com/ananicy-cpp/ananicy-cpp/-/archive/v${pkgver}/ananicy-cpp-v${pkgver}.tar.gz"
hash="49f59e8fa842c7603be344b7317eace773c3e416d881dae4ad7779b39b03fc4a"
source=("https://gitlab.com/ananicy-cpp/ananicy-cpp/-/archive/v${pkgver}/ananicy-cpp-v${pkgver}.tar.gz")
sha256sums=("49f59e8fa842c7603be344b7317eace773c3e416d881dae4ad7779b39b03fc4a")
pkgdesc="Rewrite of Ananicy in C++"
repology=("project: ananicy-cpp")
makedepends=("cmake" "g++" "libsystemd-dev" "ninja-build")

build() {
cd "${_archive}"
cmake -S . -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
Expand All @@ -17,6 +18,7 @@ build() {
}

package() {
sudo DESTDIR="${pkgdir}" cmake --install build --component Runtime
sudo install -m755 -d "${pkgdir}/etc/ananicy.d"
cd "${_archive}"
DESTDIR="${pkgdir}" cmake --install build --component Runtime
install -m755 -d "${pkgdir}/etc/ananicy.d"
}
35 changes: 21 additions & 14 deletions packages/android-studio-canary/android-studio-canary.pacscript
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
name="android-studio-canary"
pkgname="android-studio-canary"
gives="android-studio"
repology=("project: ${gives}")
replace=("${gives}-beta" "${gives}" "${name}")
replaces=("${gives}-beta" "${gives}" "${pkgname}")
pkgver="2023.1.1.28"
url="https://dl.google.com/dl/android/studio/ide-zips/${pkgver}/${gives}-${pkgver}-linux.tar.gz"
source=(
"https://dl.google.com/dl/android/studio/ide-zips/${pkgver}/${gives}-${pkgver}-linux.tar.gz"
"${gives}.desktop::https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/${gives}/${gives}.desktop"
)
depends=("libc6-i386" "lib32ncurses6" "lib32stdc++6" "lib32z1" "libbz2-1.0:i386")
pkgdesc="Android Studio is the official integrated development environment (IDE) for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and designed specifically for Android development"
hash="139d0dbb4909353b68fbf55c09b6d31a34512044a9d4f02ce0f1a9accca128f9"
maintainer="Oren Klopfer <[email protected]>"
sha256sums=(
"139d0dbb4909353b68fbf55c09b6d31a34512044a9d4f02ce0f1a9accca128f9"
"SKIP"
)
maintainer=("Oren Klopfer <[email protected]>")

package() {
cd "${_archive}"
# Moving all android studio files to /opt
sudo install -d "${pkgdir}/opt/${gives}"
sudo cp -a bin lib jbr plugins license LICENSE.txt build.txt product-info.json "${pkgdir}/opt/${gives}"
install -d "${pkgdir}/opt/${gives}"
cp -a bin lib jbr plugins license LICENSE.txt build.txt product-info.json "${pkgdir}/opt/${gives}"

# Creating a launcher in $PATH
sudo install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/bin"

sudo install -d "${pkgdir}/usr/share/applications"
sudo wget -q "https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/${gives}/${gives}.desktop" -O "${pkgdir}//usr/share/applications/${gives}.desktop"
install -d "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/${gives}.desktop" "${pkgdir}/usr/share/applications/${gives}.desktop"

sudo install -Dm644 bin/studio.png "${pkgdir}/usr/share/pixmaps/${gives}.png"
sudo chmod -R ugo+rX "${pkgdir}/opt"
sudo mkdir -p "${pkgdir}/usr/bin"
sudo ln -sf "/opt/${gives}/bin/studio.sh" "${pkgdir}/usr/bin/${gives}"
install -Dm644 bin/studio.png "${pkgdir}/usr/share/pixmaps/${gives}.png"
chmod -R ugo+rX "${pkgdir}/opt"
mkdir -p "${pkgdir}/usr/bin"
ln -sf "/opt/${gives}/bin/studio.sh" "${pkgdir}/usr/bin/${gives}"
}

post_install() {
Expand Down
37 changes: 22 additions & 15 deletions packages/android-studio/android-studio.pacscript
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
name="android-studio"
repology=("project: ${name}" "repo: aur")
replace=("${name}" "${name}-beta" "${name}-canary")
pkgname="android-studio"
repology=("project: ${pkgname}" "repo: aur")
replaces=("${pkgname}" "${pkgname}-beta" "${pkgname}-canary")
pkgver="2023.2.1.25"
url="https://dl.google.com/dl/android/studio/ide-zips/${pkgver}/${name}-${pkgver}-linux.tar.gz"
source=(
"https://dl.google.com/dl/android/studio/ide-zips/${pkgver}/${pkgname}-${pkgver}-linux.tar.gz"
"${pkgname}.desktop::https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/${pkgname}/${pkgname}.desktop"
)
depends=("libc6-i386" "lib32ncurses6" "lib32stdc++6" "lib32z1" "libbz2-1.0:i386")
pkgdesc="Android Studio is the official integrated development environment (IDE) for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and designed specifically for Android development"
hash="cd63ead467dc92a08ff6b3695c01d57e802976fc64acddcd31cd6a2427ffa1bc"
maintainer="Oren Klopfer <[email protected]>"
sha256sums=(
"cd63ead467dc92a08ff6b3695c01d57e802976fc64acddcd31cd6a2427ffa1bc"
"SKIP"
)
maintainer=("Oren Klopfer <[email protected]>")

package() {
cd "${_archive}"
# Moving all android studio files to /opt
sudo install -d "${pkgdir}/opt/${name}"
sudo cp -a bin lib jbr plugins license LICENSE.txt build.txt product-info.json "${pkgdir}/opt/${name}"
install -d "${pkgdir}/opt/${pkgname}"
cp -a bin lib jbr plugins license LICENSE.txt build.txt product-info.json "${pkgdir}/opt/${pkgname}"

# Creating a launcher in $PATH
sudo install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/bin"

sudo install -d "${pkgdir}/usr/share/applications"
sudo wget -q "https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/${name}/${name}.desktop" -O "${pkgdir}//usr/share/applications/${name}.desktop"
install -d "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"

sudo install -Dm644 bin/studio.png "${pkgdir}/usr/share/pixmaps/${name}.png"
sudo chmod -R ugo+rX "${pkgdir}/opt"
sudo mkdir -p "${pkgdir}/usr/bin"
sudo ln -sf "/opt/${name}/bin/studio.sh" "${pkgdir}/usr/bin/${name}"
install -Dm644 bin/studio.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
chmod -R ugo+rX "${pkgdir}/opt"
mkdir -p "${pkgdir}/usr/bin"
ln -sf "/opt/${pkgname}/bin/studio.sh" "${pkgdir}/usr/bin/${pkgname}"
}

post_install() {
Expand Down
Loading

0 comments on commit 788c64f

Please sign in to comment.