From c51de17c3d7f63c0be497677364567e84f587190 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Fri, 5 May 2023 12:43:29 +0500 Subject: [PATCH] Update --- core/paru | 1 - core/paru-bin | 1 - core/paru-bin/.SRCINFO | 25 +++++++++++++++++ core/paru-bin/.gitignore | 9 +++++++ core/paru-bin/PKGBUILD | 35 ++++++++++++++++++++++++ core/paru-git | 1 - core/paru-git/.SRCINFO | 27 +++++++++++++++++++ core/paru-git/.gitignore | 9 +++++++ core/paru-git/PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++ core/paru/.SRCINFO | 24 +++++++++++++++++ core/paru/.gitignore | 9 +++++++ core/paru/PKGBUILD | 46 +++++++++++++++++++++++++++++++ 12 files changed, 242 insertions(+), 3 deletions(-) delete mode 160000 core/paru delete mode 160000 core/paru-bin create mode 100644 core/paru-bin/.SRCINFO create mode 100644 core/paru-bin/.gitignore create mode 100644 core/paru-bin/PKGBUILD delete mode 160000 core/paru-git create mode 100644 core/paru-git/.SRCINFO create mode 100644 core/paru-git/.gitignore create mode 100644 core/paru-git/PKGBUILD create mode 100644 core/paru/.SRCINFO create mode 100644 core/paru/.gitignore create mode 100644 core/paru/PKGBUILD diff --git a/core/paru b/core/paru deleted file mode 160000 index 9f00c1b..0000000 --- a/core/paru +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9f00c1bad581ba6a3e96158dfbbabd693a5ee179 diff --git a/core/paru-bin b/core/paru-bin deleted file mode 160000 index f58f4ad..0000000 --- a/core/paru-bin +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f58f4adbe53ed7929d226c738581fb5b6006126f diff --git a/core/paru-bin/.SRCINFO b/core/paru-bin/.SRCINFO new file mode 100644 index 0000000..11c32f8 --- /dev/null +++ b/core/paru-bin/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = paru-bin + pkgdesc = Feature packed AUR helper + pkgver = 1.11.2 + pkgrel = 1 + url = https://github.com/morganamilo/paru + arch = x86_64 + arch = aarch64 + arch = armv7h + license = GPL3 + depends = git + depends = pacman + optdepends = asp: downloading repo pkgbuilds + optdepends = bat: colored pkgbuild printing + optdepends = devtools: build in chroot + provides = paru + conflicts = paru + backup = etc/paru.conf + source_x86_64 = https://github.com/Morganamilo/paru/releases/download/v1.11.2/paru-v1.11.2-x86_64.tar.zst + sha256sums_x86_64 = 8cb2faa8098f259c5faffe2c3e94cdc4f0d4dc1a59921b818f1ec0fc50deb278 + source_aarch64 = https://github.com/Morganamilo/paru/releases/download/v1.11.2/paru-v1.11.2-aarch64.tar.zst + sha256sums_aarch64 = ff9272600e5e0b4e380ced5376a2c2ee480f34e84456235dec785c63378ec804 + source_armv7h = https://github.com/Morganamilo/paru/releases/download/v1.11.2/paru-v1.11.2-armv7h.tar.zst + sha256sums_armv7h = c73b0f4dcba0dd45c222c6a00a923c7811be29a1ff1ab8972bac2c0b569e5968 + +pkgname = paru-bin diff --git a/core/paru-bin/.gitignore b/core/paru-bin/.gitignore new file mode 100644 index 0000000..5995b08 --- /dev/null +++ b/core/paru-bin/.gitignore @@ -0,0 +1,9 @@ +.git +*.pkg.tar +*.pkg.tar.* +*.zst +*.zst.* +pkg/ +src/ +.idea/ +paru* diff --git a/core/paru-bin/PKGBUILD b/core/paru-bin/PKGBUILD new file mode 100644 index 0000000..b135a3b --- /dev/null +++ b/core/paru-bin/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Morgan +pkgname=paru-bin +pkgver=1.11.2 +pkgrel=1 +pkgdesc='Feature packed AUR helper' +url='https://github.com/morganamilo/paru' +source_x86_64=("https://github.com/Morganamilo/paru/releases/download/v$pkgver/paru-v$pkgver-x86_64.tar.zst") +source_aarch64=("https://github.com/Morganamilo/paru/releases/download/v$pkgver/paru-v$pkgver-aarch64.tar.zst") +source_armv7h=("https://github.com/Morganamilo/paru/releases/download/v$pkgver/paru-v$pkgver-armv7h.tar.zst") +backup=("etc/paru.conf") +arch=('x86_64' 'aarch64' 'armv7h') +license=('GPL3') +depends=('git' 'pacman') +optdepends=('asp: downloading repo pkgbuilds' 'bat: colored pkgbuild printing' 'devtools: build in chroot') +conflicts=('paru') +provides=('paru') +sha256sums_x86_64=('8cb2faa8098f259c5faffe2c3e94cdc4f0d4dc1a59921b818f1ec0fc50deb278') +sha256sums_aarch64=('ff9272600e5e0b4e380ced5376a2c2ee480f34e84456235dec785c63378ec804') +sha256sums_armv7h=('c73b0f4dcba0dd45c222c6a00a923c7811be29a1ff1ab8972bac2c0b569e5968') + +package() { + cd "$srcdir/" + + install -Dm755 paru "${pkgdir}/usr/bin/paru" + install -Dm644 paru.conf "${pkgdir}/etc/paru.conf" + + install -Dm644 man/paru.8 "$pkgdir/usr/share/man/man8/paru.8" + install -Dm644 man/paru.conf.5 "$pkgdir/usr/share/man/man5/paru.conf.5" + + install -Dm644 completions/bash "${pkgdir}/usr/share/bash-completion/completions/paru.bash" + install -Dm644 completions/fish "${pkgdir}/usr/share/fish/vendor_completions.d/paru.fish" + install -Dm644 completions/zsh "${pkgdir}/usr/share/zsh/site-functions/_paru" + + cp -r locale "$pkgdir/usr/share/" +} diff --git a/core/paru-git b/core/paru-git deleted file mode 160000 index a3fa663..0000000 --- a/core/paru-git +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a3fa663435f942314739c7d27c298dedf80d5411 diff --git a/core/paru-git/.SRCINFO b/core/paru-git/.SRCINFO new file mode 100644 index 0000000..f00dfd3 --- /dev/null +++ b/core/paru-git/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = paru-git + pkgdesc = Feature packed AUR helper + pkgver = 1.7.3.r22.g1ed1f29 + pkgrel = 1 + url = https://github.com/morganamilo/paru + arch = i686 + arch = pentium4 + arch = x86_64 + arch = arm + arch = armv7h + arch = armv6h + arch = aarch64 + license = GPL3 + makedepends = cargo + depends = glibc + depends = git + depends = pacman + optdepends = asp: downloading repo pkgbuilds + optdepends = bat: colored pkgbuild printing + optdepends = devtools: build in chroot + provides = paru + conflicts = paru + backup = etc/paru.conf + source = git+https://github.com/morganamilo/paru + sha256sums = SKIP + +pkgname = paru-git diff --git a/core/paru-git/.gitignore b/core/paru-git/.gitignore new file mode 100644 index 0000000..5995b08 --- /dev/null +++ b/core/paru-git/.gitignore @@ -0,0 +1,9 @@ +.git +*.pkg.tar +*.pkg.tar.* +*.zst +*.zst.* +pkg/ +src/ +.idea/ +paru* diff --git a/core/paru-git/PKGBUILD b/core/paru-git/PKGBUILD new file mode 100644 index 0000000..46eff0c --- /dev/null +++ b/core/paru-git/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Morgan +pkgname=paru-git +_pkgname=paru +pkgver=1.11.2.r167.g257e011 +pkgrel=1 +pkgdesc='Feature packed AUR helper' +url='https://github.com/morganamilo/paru' +source=("git+https://github.com/morganamilo/paru") +backup=("etc/paru.conf") +arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') +license=('GPL3') +makedepends=('cargo') +depends=('glibc' 'git' 'pacman') +optdepends=('asp: downloading repo pkgbuilds' 'bat: colored pkgbuild printing' 'devtools: build in chroot') +conflicts=('paru') +provides=('paru') +sha256sums=(SKIP) + +build () { + cd "$srcdir/$_pkgname" + + if pacman -T pacman-git > /dev/null; then + _features+="git," + fi + + if [[ $(rustc -V) == *"nightly"* ]]; then + _features+="backtrace," + fi + + if [[ $CARCH != x86_64 ]]; then + export CARGO_PROFILE_RELEASE_LTO=off + fi + + PARU_VERSION=$pkgver cargo build --locked --features "${_features:-}" --release --target-dir target + ./scripts/mkmo locale/ +} + +package() { + cd "$srcdir/$_pkgname" + + install -Dm755 target/release/paru "${pkgdir}/usr/bin/paru" + install -Dm644 paru.conf "${pkgdir}/etc/paru.conf" + + install -Dm644 man/paru.8 "$pkgdir/usr/share/man/man8/paru.8" + install -Dm644 man/paru.conf.5 "$pkgdir/usr/share/man/man5/paru.conf.5" + + install -Dm644 completions/bash "${pkgdir}/usr/share/bash-completion/completions/paru.bash" + install -Dm644 completions/fish "${pkgdir}/usr/share/fish/vendor_completions.d/paru.fish" + install -Dm644 completions/zsh "${pkgdir}/usr/share/zsh/site-functions/_paru" + + install -d "$pkgdir/usr/share/" + cp -r locale "$pkgdir/usr/share/" +} + +pkgver() { + cd "$srcdir/$_pkgname" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} diff --git a/core/paru/.SRCINFO b/core/paru/.SRCINFO new file mode 100644 index 0000000..6d01300 --- /dev/null +++ b/core/paru/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = paru + pkgdesc = Feature packed AUR helper + pkgver = 1.11.1 + pkgrel = 1 + url = https://github.com/morganamilo/paru + arch = i686 + arch = pentium4 + arch = x86_64 + arch = arm + arch = armv7h + arch = armv6h + arch = aarch64 + license = GPL3 + makedepends = cargo + depends = git + depends = pacman + optdepends = asp: downloading repo pkgbuilds + optdepends = bat: colored pkgbuild printing + optdepends = devtools: build in chroot + backup = etc/paru.conf + source = paru-1.11.1.tar.gz::https://github.com/Morganamilo/paru/archive/v1.11.1.tar.gz + sha256sums = 42cefa8cdf48e3aec3f9922235f1e1126a9fe3262f1644494e1be51980e520d8 + +pkgname = paru diff --git a/core/paru/.gitignore b/core/paru/.gitignore new file mode 100644 index 0000000..5995b08 --- /dev/null +++ b/core/paru/.gitignore @@ -0,0 +1,9 @@ +.git +*.pkg.tar +*.pkg.tar.* +*.zst +*.zst.* +pkg/ +src/ +.idea/ +paru* diff --git a/core/paru/PKGBUILD b/core/paru/PKGBUILD new file mode 100644 index 0000000..e2a82da --- /dev/null +++ b/core/paru/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Morgan +pkgname=paru +pkgver=1.11.1 +pkgrel=1 +pkgdesc='Feature packed AUR helper' +url='https://github.com/morganamilo/paru' +source=("$pkgname-$pkgver.tar.gz::https://github.com/Morganamilo/paru/archive/v$pkgver.tar.gz") +backup=("etc/paru.conf") +arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') +license=('GPL3') +makedepends=('cargo') +depends=('git' 'pacman') +optdepends=('asp: downloading repo pkgbuilds' 'bat: colored pkgbuild printing' 'devtools: build in chroot') +sha256sums=('42cefa8cdf48e3aec3f9922235f1e1126a9fe3262f1644494e1be51980e520d8') + +build () { + cd "$srcdir/$pkgname-$pkgver" + + if pacman -T pacman-git > /dev/null; then + _features+="git," + fi + + if [[ $CARCH != x86_64 ]]; then + export CARGO_PROFILE_RELEASE_LTO=off + fi + + cargo build --locked --features "${_features:-}" --release --target-dir target + ./scripts/mkmo locale/ +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -Dm755 target/release/paru "${pkgdir}/usr/bin/paru" + install -Dm644 paru.conf "${pkgdir}/etc/paru.conf" + + install -Dm644 man/paru.8 "$pkgdir/usr/share/man/man8/paru.8" + install -Dm644 man/paru.conf.5 "$pkgdir/usr/share/man/man5/paru.conf.5" + + install -Dm644 completions/bash "${pkgdir}/usr/share/bash-completion/completions/paru.bash" + install -Dm644 completions/fish "${pkgdir}/usr/share/fish/vendor_completions.d/paru.fish" + install -Dm644 completions/zsh "${pkgdir}/usr/share/zsh/site-functions/_paru" + + install -d "$pkgdir/usr/share/" + cp -r locale "$pkgdir/usr/share/" +}