mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Update to 1.7.0
This commit is contained in:
parent
94a6c9aa9e
commit
25e267d531
2 changed files with 37 additions and 28 deletions
11
.SRCINFO
11
.SRCINFO
|
|
@ -6,17 +6,10 @@ pkgbase = autotitle
|
|||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = GPL3
|
||||
makedepends = mise
|
||||
depends = glibc
|
||||
backup = etc/autotitle/config.yml
|
||||
source = https://github.com/mydehq/autotitle/raw/v1.7.0/src/config.yml
|
||||
source = https://github.com/mydehq/autotitle/raw/v1.7.0/LICENSE
|
||||
source = https://github.com/mydehq/autotitle/raw/v1.7.0/README.md
|
||||
source = autotitle-1.7.0.tar.gz::https://github.com/mydehq/autotitle/archive/v1.7.0.tar.gz
|
||||
sha256sums = SKIP
|
||||
sha256sums = SKIP
|
||||
sha256sums = SKIP
|
||||
source_x86_64 = autotitle-linux-amd64::https://github.com/mydehq/autotitle/releases/download/v1.7.0/autotitle-linux-amd64
|
||||
sha256sums_x86_64 = SKIP
|
||||
source_aarch64 = autotitle-linux-arm64::https://github.com/mydehq/autotitle/releases/download/v1.7.0/autotitle-linux-arm64
|
||||
sha256sums_aarch64 = SKIP
|
||||
|
||||
pkgname = autotitle
|
||||
|
|
|
|||
54
PKGBUILD
54
PKGBUILD
|
|
@ -6,30 +6,46 @@ pkgdesc="Automated media file renamer using online databases"
|
|||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/mydehq/autotitle"
|
||||
license=('GPL3')
|
||||
|
||||
depends=('glibc')
|
||||
makedepends=('mise')
|
||||
|
||||
source_x86_64=("${pkgname}-linux-amd64::${url}/releases/download/v${pkgver}/${pkgname}-linux-amd64")
|
||||
source_aarch64=("${pkgname}-linux-arm64::${url}/releases/download/v${pkgver}/${pkgname}-linux-arm64")
|
||||
|
||||
source=("${url}/raw/v${pkgver}/src/config.yml"
|
||||
"${url}/raw/v${pkgver}/LICENSE"
|
||||
"${url}/raw/v${pkgver}/README.md")
|
||||
|
||||
sha256sums_x86_64=('SKIP')
|
||||
sha256sums_aarch64=('SKIP')
|
||||
sha256sums=('SKIP'
|
||||
'SKIP'
|
||||
'SKIP')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
backup=('etc/autotitle/config.yml')
|
||||
|
||||
package() {
|
||||
local _bin_file="${pkgname}-linux-amd64"
|
||||
[ "$CARCH" == "aarch64" ] && _bin_file="${pkgname}-linux-arm64"
|
||||
prepare() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
|
||||
install -Dm755 "$_bin_file" "$pkgdir/usr/bin/autotitle"
|
||||
install -Dm644 "config.yml" "$pkgdir/etc/autotitle/config.yml"
|
||||
# Trust the mise.toml
|
||||
mise trust --yes
|
||||
|
||||
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||
# Install only the required Go compiler
|
||||
mise install go
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
|
||||
# Set version metadata for version.sh (since build from tarball has no .git)
|
||||
export VERSION="v${pkgver}"
|
||||
export COMMIT="v${pkgver}"
|
||||
export DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||
|
||||
# Use mise to run the release task
|
||||
mise run release
|
||||
}
|
||||
|
||||
|
||||
package() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
|
||||
msg2 "Packaging binary..."
|
||||
install -Dm755 bin/autotitle "$pkgdir/usr/bin/autotitle"
|
||||
install -Dm644 src/config.yml "$pkgdir/etc/autotitle/config.yml"
|
||||
|
||||
msg2 "Packaging Docs, License..."
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue