Skip to content

Commit

Permalink
ref(*): deprecate presumptive _archive (#6702)
Browse files Browse the repository at this point in the history
Requires pacstall/pacstall#1271

if a script has `${_archive}` and `_archive=` is not defined:
- if it is a tar archive or zip:
    - replace all instances with `${pkgname~${pkgver}`
    - prefix all `source[0]` entries (as well as `source_*[0]`) with
        - `@${pkgname~${pkgver}::` or
        - `dest@${pkgname~${pkgver}::` if there was a dest prefix before
- otherwise:
    - replace all instances with `${srcdir}`
    
~~Not directly caused by this, but will be more prevalent after:~~
~~the website API should strip out anything before `::` for final source
entries, so that repology will be more likely to accept us again.~~

> ~~This should *not* be altered here, as for the default behavior, we
want full source entries to be given, so that entries may be parsable to
pacstall in the form they would be used to build. Given this, I am also
leaning away from making the change in go-srcinfo, and towards only
altering it in the final stretch on the website's end.~~

(EDIT: site fix done here pacstall/website#1097)


<details>
<summary>script to convert:</summary>

```py
#!/usr/bin/env python3

import glob
import re
import os

def process_pacscript(pacscript_path):
    with open(pacscript_path, 'r') as f:
        content = f.read()
    if '${_archive}' not in content or '_archive=' in content:
        return
    source_pattern = re.compile(r'^(source(?:_[a-zA-Z0-9_]+)?=\(\s*)(.*?)(\s*\))$', re.DOTALL | re.MULTILINE)

    def modify_source_block(match):
        opening = match.group(1)
        sources_text = match.group(2)
        closing = match.group(3)
        lines = sources_text.splitlines()
        new_lines = []
        first_entry_modified = False
        for line in lines:
            stripped_line = line.strip()
            if not stripped_line or stripped_line.startswith('#'):
                new_lines.append(line)
                continue
            if not first_entry_modified:
                match_line = re.match(r'^(\s*)(["\']?)(.*?)(["\']?)(,?\s*)$', line)
                if match_line:
                    indent, quote_start, content_line, quote_end, comma = match_line.groups()
                    if '::' in content_line:
                        prefix, suffix = content_line.split('::', 1)
                        new_content = f'{prefix}@${{pkgname}}~${{pkgver}}::{suffix}'
                    else:
                        new_content = f'@${{pkgname}}~${{pkgver}}::{content_line}'

                    new_line = f'{indent}{quote_start}{new_content}{quote_end}{comma}'
                    new_lines.append(new_line)
                    first_entry_modified = True
                else:
                    new_lines.append(line)
                    first_entry_modified = True
            else:
                new_lines.append(line)
        reconstructed_block = f'{opening}' + '\n'.join(new_lines) + f'{closing}'
        return reconstructed_block

    if re.search(r'\.tar|\.zip|\.tgz', content):
        content = content.replace('${_archive}', '${pkgname}~${pkgver}')
        content_new = source_pattern.sub(modify_source_block, content)
    else:
        content_new = content.replace('${_archive}', '${srcdir}')
    if content_new != content:
        with open(pacscript_path, 'w') as f:
            f.write(content_new)
        print(f"Processed {pacscript_path}")
    else:
        print(f"No changes made to {pacscript_path}")

def main():
    pacscript_files = glob.glob('packages/*/*.pacscript')
    for pacscript in pacscript_files:
        process_pacscript(pacscript)

if __name__ == '__main__':
    main()
```
</details>

Co-authored-by: ook37 <[email protected]>
  • Loading branch information
oklopfer and ook37 authored Dec 29, 2024
1 parent b867b56 commit dab28c1
Show file tree
Hide file tree
Showing 346 changed files with 826 additions and 826 deletions.
2 changes: 1 addition & 1 deletion packages/1password-cli-bin/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pkgbase = 1password-cli-bin
arch = amd64
maintainer = Oren Klopfer <[email protected]>
repology = project: 1password-cli
source = https://cache.agilebits.com/dist/1P/op2/pkg/v2.30.3/op_linux_amd64_v2.30.3.zip
source = @1password-cli-bin~2.30.3::https://cache.agilebits.com/dist/1P/op2/pkg/v2.30.3/op_linux_amd64_v2.30.3.zip
sha256sums = a16307ebcecb40fd091d7a6ff4f0c380c3c0897c4f4616de2c5d285e57d5ee28

pkgname = 1password-cli-bin
4 changes: 2 additions & 2 deletions packages/1password-cli-bin/1password-cli-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ pkgname="1password-cli-bin"
gives="1password-cli"
repology=("project: ${gives}")
pkgver="2.30.3"
source=("https://cache.agilebits.com/dist/1P/op2/pkg/v${pkgver}/op_linux_amd64_v${pkgver}.zip")
source=("@${pkgname}~${pkgver}::https://cache.agilebits.com/dist/1P/op2/pkg/v${pkgver}/op_linux_amd64_v${pkgver}.zip")
pkgdesc="1Password CLI"
sha256sums=("a16307ebcecb40fd091d7a6ff4f0c380c3c0897c4f4616de2c5d285e57d5ee28")
arch=('amd64')
maintainer=("Oren Klopfer <[email protected]>")

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
install -Dm755 op -t "${pkgdir}/usr/bin"
}
2 changes: 1 addition & 1 deletion packages/adw-gtk3/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pkgbase = adw-gtk3
maintainer = Herisson <[email protected]>
repology = project: adw-gtk3
repology = repo: aur
source = https://github.com/lassekongo83/adw-gtk3/releases/download/v5.3/adw-gtk3v5.3.tar.xz
source = @adw-gtk3~5.3::https://github.com/lassekongo83/adw-gtk3/releases/download/v5.3/adw-gtk3v5.3.tar.xz
sha256sums = 2e6e87935bef30936e40d07c7af4fd20754e77917be224f61c4346867196bef0

pkgname = adw-gtk3
6 changes: 3 additions & 3 deletions packages/adw-gtk3/adw-gtk3.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ arch=('any')
pkgver="5.3"
pkgdesc="An unofficial GTK3 port of libadwaita."
repology=("project: adw-gtk3" "repo: aur")
source=("https://github.com/lassekongo83/adw-gtk3/releases/download/v${pkgver}/${pkgname}v${pkgver}.tar.xz")
source=("@${pkgname}~${pkgver}::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() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
mkdir -p "${pkgdir}/usr/share/themes/${pkgname}"
mkdir -p "${pkgdir}/usr/share/themes/${pkgname}-dark"
}

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
cp -r "${pkgname}"/* "${pkgdir}/usr/share/themes/${pkgname}/"
cp -r "${pkgname}"-dark/* "${pkgdir}/usr/share/themes/${pkgname}-dark/"
}
2 changes: 1 addition & 1 deletion packages/alacritty/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pkgbase = alacritty
incompatible = debian:bookworm
maintainer = Warofzen <[email protected]>
repology = project: alacritty
source = https://github.com/alacritty/alacritty/archive/refs/tags/v0.14.0.tar.gz
source = @alacritty~0.14.0::https://github.com/alacritty/alacritty/archive/refs/tags/v0.14.0.tar.gz
sha256sums = 2919767177c010339502085b4ac5d3f9f15ca27e6befc39aa9d20fefb93ebcdf

pkgname = alacritty
6 changes: 3 additions & 3 deletions packages/alacritty/alacritty.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pkgname="alacritty"
arch=("any")
pkgver="0.14.0"
repology=("project: alacritty")
source=("https://github.com/alacritty/alacritty/archive/refs/tags/v${pkgver}.tar.gz")
source=("@${pkgname}~${pkgver}::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]>")
Expand All @@ -11,12 +11,12 @@ external_connection=true
sha256sums=("2919767177c010339502085b4ac5d3f9f15ca27e6befc39aa9d20fefb93ebcdf")

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

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

install -Dm644 extra/logo/alacritty-term.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/Alacritty.svg"
Expand Down
2 changes: 1 addition & 1 deletion packages/amf-headers/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pkgbase = amf-headers
makedepends = git
license = MIT
maintainer = Luis Garcia <[email protected]>
source = https://github.com/GPUOpen-LibrariesAndSDKs/AMF/releases/download/v1.4.34/AMF-headers.tar.gz
source = @amf-headers~1.4.34::https://github.com/GPUOpen-LibrariesAndSDKs/AMF/releases/download/v1.4.34/AMF-headers.tar.gz
sha256sums = 5393759308f6d7bc9eb1ed8013c954e03aadb85f0ed6e96f969a5df447b0f79c

pkgname = amf-headers
4 changes: 2 additions & 2 deletions packages/amf-headers/amf-headers.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainer=("Luis Garcia <[email protected]>")
license=('MIT')

source=(
"https://github.com/GPUOpen-LibrariesAndSDKs/AMF/releases/download/v${pkgver}/AMF-headers.tar.gz"
"@${pkgname}~${pkgver}::https://github.com/GPUOpen-LibrariesAndSDKs/AMF/releases/download/v${pkgver}/AMF-headers.tar.gz"
)
sha256sums=(
"5393759308f6d7bc9eb1ed8013c954e03aadb85f0ed6e96f969a5df447b0f79c"
Expand All @@ -21,7 +21,7 @@ depends=()
optdepends=()

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
install -dm 755 "${pkgdir}/usr/include/AMF"
cp -dr --no-preserve=ownership ./* "${pkgdir}/usr/include/AMF/"
}
2 changes: 1 addition & 1 deletion packages/amfora-bin/amfora-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ maintainer=("Elsie19 <[email protected]>")
repology=("project: ${gives}")

package() {
cd "${_archive}"
cd "${srcdir}"
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}"
Expand Down
2 changes: 1 addition & 1 deletion packages/ananicy-cpp/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pkgbase = ananicy-cpp
makedepends = libsystemd-dev
makedepends = ninja-build
repology = project: ananicy-cpp
source = https://gitlab.com/ananicy-cpp/ananicy-cpp/-/archive/v1.1.0/ananicy-cpp-v1.1.0.tar.gz
source = @ananicy-cpp~1.1.0::https://gitlab.com/ananicy-cpp/ananicy-cpp/-/archive/v1.1.0/ananicy-cpp-v1.1.0.tar.gz
sha256sums = 49f59e8fa842c7603be344b7317eace773c3e416d881dae4ad7779b39b03fc4a

pkgname = ananicy-cpp
6 changes: 3 additions & 3 deletions packages/ananicy-cpp/ananicy-cpp.pacscript
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
pkgname="ananicy-cpp"
arch=("any")
pkgver="1.1.0"
source=("https://gitlab.com/ananicy-cpp/ananicy-cpp/-/archive/v${pkgver}/ananicy-cpp-v${pkgver}.tar.gz")
source=("@${pkgname}~${pkgver}::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")
external_connection=true

build() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
cmake -S . -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
Expand All @@ -20,7 +20,7 @@ build() {
}

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
DESTDIR="${pkgdir}" cmake --install build --component Runtime
install -m755 -d "${pkgdir}/etc/ananicy.d"
}
2 changes: 1 addition & 1 deletion packages/android-studio-canary/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pkgbase = android-studio-canary
replaces = android-studio-canary
maintainer = Oren Klopfer <[email protected]>
repology = project: android-studio
source = https://dl.google.com/dl/android/studio/ide-zips/2024.2.1.11/android-studio-2024.2.1.11-linux.tar.gz
source = @android-studio-canary~2024.2.1.11::https://dl.google.com/dl/android/studio/ide-zips/2024.2.1.11/android-studio-2024.2.1.11-linux.tar.gz
source = android-studio.desktop::https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/android-studio/android-studio.desktop
sha256sums = 81f2fa5da72ab6f6afacca4a5327de5191e133ad02706e3ee440dc8658b8cdc3
sha256sums = SKIP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ replaces=("${gives}-beta" "${gives}" "${pkgname}")
arch=("amd64")
pkgver="2024.2.1.11"
source=(
"https://dl.google.com/dl/android/studio/ide-zips/${pkgver}/${gives}-${pkgver}-linux.tar.gz"
"@${pkgname}~${pkgver}::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")
Expand All @@ -17,7 +17,7 @@ sha256sums=(
maintainer=("Oren Klopfer <[email protected]>")

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
# Moving all android studio files to /opt
install -d "${pkgdir}/opt/${gives}"
cp -a bin lib jbr plugins license LICENSE.txt build.txt product-info.json "${pkgdir}/opt/${gives}"
Expand Down
2 changes: 1 addition & 1 deletion packages/android-studio/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pkgbase = android-studio
repology = project: android-studio
repology = repo: aur
repology = visiblename: android-studio
source = https://dl.google.com/dl/android/studio/ide-zips/2024.2.1.11/android-studio-2024.2.1.11-linux.tar.gz
source = @android-studio~2024.2.1.11::https://dl.google.com/dl/android/studio/ide-zips/2024.2.1.11/android-studio-2024.2.1.11-linux.tar.gz
source = android-studio.desktop::https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/android-studio/android-studio.desktop
sha256sums = 81f2fa5da72ab6f6afacca4a5327de5191e133ad02706e3ee440dc8658b8cdc3
sha256sums = SKIP
Expand Down
4 changes: 2 additions & 2 deletions packages/android-studio/android-studio.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ replaces=("${pkgname}" "${pkgname}-beta" "${pkgname}-canary")
arch=("amd64")
pkgver="2024.2.1.11"
source=(
"https://dl.google.com/dl/android/studio/ide-zips/${pkgver}/${pkgname}-${pkgver}-linux.tar.gz"
"@${pkgname}~${pkgver}::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")
Expand All @@ -16,7 +16,7 @@ sha256sums=(
maintainer=("Oren Klopfer <[email protected]>")

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
# Moving all android studio files to /opt
install -d "${pkgdir}/opt/${pkgname}"
cp -a bin lib jbr plugins license LICENSE.txt build.txt product-info.json "${pkgdir}/opt/${pkgname}"
Expand Down
4 changes: 2 additions & 2 deletions packages/ani-cli-bin/ani-cli-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ pkgdesc="A cli tool to browse and play anime"
maintainer=("Elsie19 <[email protected]>")

prepare() {
cd "${_archive}"
cd "${srcdir}"
chmod +x ani-cli
gzip -9n "${srcdir}"/ani-cli.1
}

package() {
cd "${_archive}"
cd "${srcdir}"
install -Dm755 "./ani-cli" "${pkgdir}/usr/bin/ani-cli"
install -Dm644 "./ani-cli.1.gz" "${pkgdir}/usr/share/man/man1/ani-cli.1.gz"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/anydesk-bin/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pkgbase = anydesk-bin
breaks = anydesk-deb
replaces = anydesk
repology = project: anydesk
source = https://download.anydesk.com/linux/anydesk-6.3.0-amd64.tar.gz
source = @anydesk-bin~6.3.0::https://download.anydesk.com/linux/anydesk-6.3.0-amd64.tar.gz
sha256sums = b1e3337d35ce19af93963829988b2014e8acfbbf6bd1b5adfb8bc7dcd6fee452

pkgname = anydesk-bin
4 changes: 2 additions & 2 deletions packages/anydesk-bin/anydesk-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ breaks=("${gives}-deb")
replaces=("${gives}")
repology=("project: ${gives}")
pkgver="6.3.0"
source=("https://download.anydesk.com/linux/${gives}-${pkgver}-amd64.tar.gz")
source=("@${pkgname}~${pkgver}::https://download.anydesk.com/linux/${gives}-${pkgver}-amd64.tar.gz")
depends=("libc6" "libgcc1" "libglib2.0-0" "libgtk2.0-0" "libstdc++6" "libx11-6" "libxcb-shm0" "libxcb1" "libpango1.0-dev" "libcairo2" "libxrandr2" "libx11-xcb1" "libxtst6" "libxfixes3" "libxdamage1" "libgtkglext1")
pkgdesc="Platform independent remote access to personal computers and other devices running the host application - Binary version"
sha256sums=("b1e3337d35ce19af93963829988b2014e8acfbbf6bd1b5adfb8bc7dcd6fee452")
arch=('amd64')

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
# Binary
install -Dm755 "${gives}" -t "${pkgdir}/usr/bin"
# Polkit
Expand Down
2 changes: 1 addition & 1 deletion packages/arduino-cli-bin/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pkgbase = arduino-cli-bin
breaks = arduino-cli-git
maintainer = DismissedGuy <[email protected]>
repology = project: arduino-cli
source = https://github.com/arduino/arduino-cli/releases/download/v0.35.3/arduino-cli_0.35.3_Linux_64bit.tar.gz
source = @arduino-cli-bin~0.35.3::https://github.com/arduino/arduino-cli/releases/download/v0.35.3/arduino-cli_0.35.3_Linux_64bit.tar.gz
sha256sums = acf3a3e03f0478a1cade44d23d4bc2f979c9b61b64e13bc66e26220b7b9fbd23

pkgname = arduino-cli-bin
4 changes: 2 additions & 2 deletions packages/arduino-cli-bin/arduino-cli-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ arch=("amd64")
pkgver="0.35.3"
maintainer=("DismissedGuy <[email protected]>")
breaks=("${gives}" "${gives}-deb" "${gives}-app" "${gives}-git")
source=("https://github.com/arduino/arduino-cli/releases/download/v${pkgver}/${gives}_${pkgver}_Linux_64bit.tar.gz")
source=("@${pkgname}~${pkgver}::https://github.com/arduino/arduino-cli/releases/download/v${pkgver}/${gives}_${pkgver}_Linux_64bit.tar.gz")
pkgdesc="An all-in-one solution that provides Boards/Library Managers, sketch builder, board detection, uploader, and many other tools needed to use any Arduino compatible board and platform from command line or machine interfaces"
sha256sums=("acf3a3e03f0478a1cade44d23d4bc2f979c9b61b64e13bc66e26220b7b9fbd23")

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
install -Dm755 "${gives}" -t "${pkgdir}/usr/bin"
}
2 changes: 1 addition & 1 deletion packages/arduino-ide-bin/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pkgbase = arduino-ide-bin
breaks = arduino-ide-git
maintainer = DismissedGuy <[email protected]>
repology = project: arduino
source = https://downloads.arduino.cc/arduino-ide/arduino-ide_2.3.2_Linux_64bit.zip
source = @arduino-ide-bin~2.3.2::https://downloads.arduino.cc/arduino-ide/arduino-ide_2.3.2_Linux_64bit.zip
source = arduino.svg::https://www.arduino.cc/wiki/370832ed4114dd35d498f2f449b4781e/arduino.svg
source = arduino-ide.desktop::https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/arduino-ide-bin/arduino-ide.desktop
sha256sums = 1a23b911043a247116ace846f03a0265c719dcd49cf9a8af09334db4d3916e88
Expand Down
6 changes: 3 additions & 3 deletions packages/arduino-ide-bin/arduino-ide-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repology=("project: arduino")
maintainer=("DismissedGuy <[email protected]>")
breaks=("${gives}" "${gives}-deb" "${gives}-app" "${gives}-git")
source=(
"https://downloads.arduino.cc/${gives}/${gives}_${pkgver}_Linux_64bit.zip"
"@${pkgname}~${pkgver}::https://downloads.arduino.cc/${gives}/${gives}_${pkgver}_Linux_64bit.zip"
"arduino.svg::https://www.arduino.cc/wiki/370832ed4114dd35d498f2f449b4781e/arduino.svg"
"${gives}.desktop::https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/${pkgname}/${gives}.desktop"
)
Expand All @@ -18,7 +18,7 @@ sha256sums=(
)

prepare() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
# potential leftover symlink from v1
rm -f "/usr/local/bin/arduino"

Expand All @@ -28,7 +28,7 @@ prepare() {
}

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
# install files
cp -R ./* "${pkgdir}/usr/share/${gives}/"

Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cli-v2-bin/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pkgbase = aws-cli-v2-bin
replaces = awscli
maintainer = Oren Klopfer <[email protected]>
repology = project: awscli
source = https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.21.0.zip
source = @aws-cli-v2-bin~2.21.0::https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.21.0.zip
sha256sums = 0bb85fe4db44b35f111aae651e9dfc38f90c1db8cc582544944ad788cf5d1549

pkgname = aws-cli-v2-bin
4 changes: 2 additions & 2 deletions packages/aws-cli-v2-bin/aws-cli-v2-bin.pacscript
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgname="aws-cli-v2-bin"
gives="aws-cli-v2"
pkgver="2.21.0"
source=("https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${pkgver}.zip")
source=("@${pkgname}~${pkgver}::https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${pkgver}.zip")
pkgdesc="Universal Command Line Interface for Amazon Web Services v2"
depends=("groff" "less")
makedepends=("unzip")
Expand All @@ -12,7 +12,7 @@ sha256sums=("0bb85fe4db44b35f111aae651e9dfc38f90c1db8cc582544944ad788cf5d1549")
maintainer=("Oren Klopfer <[email protected]>")

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
./install --install-dir "${pkgdir}/usr/local/aws-cli" --bin-dir "/usr/local/bin"

# bash autocompletion
Expand Down
2 changes: 1 addition & 1 deletion packages/bat/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pkgbase = bat
makedepends = libonig-dev
makedepends = pkg-config
replaces = bat
source = https://github.com/sharkdp/bat/archive/refs/tags/v0.24.0.tar.gz
source = @bat~0.24.0::https://github.com/sharkdp/bat/archive/refs/tags/v0.24.0.tar.gz
sha256sums = 907554a9eff239f256ee8fe05a922aad84febe4fe10a499def72a4557e9eedfb

pkgname = bat
6 changes: 3 additions & 3 deletions packages/bat/bat.pacscript
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgname="bat"
arch=("any")
pkgver="0.24.0"
source=("https://github.com/sharkdp/bat/archive/refs/tags/v${pkgver}.tar.gz")
source=("@${pkgname}~${pkgver}::https://github.com/sharkdp/bat/archive/refs/tags/v${pkgver}.tar.gz")
makedepends=("cargo" "libonig-dev" "pkg-config")
depends=("libonig5")
replaces=("bat")
Expand All @@ -10,12 +10,12 @@ external_connection=true
sha256sums=("907554a9eff239f256ee8fe05a922aad84febe4fe10a499def72a4557e9eedfb")

build() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
RUSTONIG_SYSTEM_LIBONIG=1 cargo build -j"${NCPU}" --release --locked
}

package() {
cd "${_archive}"
cd "${pkgname}~${pkgver}"
install -Dm755 target/release/bat -t "${pkgdir}/usr/bin"

install -Dm644 "$(find target -name bat.bash -print -quit)" "${pkgdir}/usr/share/bash-completion/completions/bat"
Expand Down
2 changes: 1 addition & 1 deletion packages/batsignal/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pkgbase = batsignal
breaks = batsignal-git
maintainer = Harshwardhan Mehrotra <[email protected]>
repology = project: batsignal
source = https://github.com/electrickite/batsignal/archive/refs/tags/1.6.4.tar.gz
source = @batsignal~1.6.4::https://github.com/electrickite/batsignal/archive/refs/tags/1.6.4.tar.gz
sha256sums = 58439dac2b678ab798831fe861c06d2d5c128c4bb4bae1476a62ba1771da3983

pkgname = batsignal
Loading

0 comments on commit dab28c1

Please sign in to comment.