#!/usr/bin/env bash
# Copyright (c) 2023 The Toltec Contributors
# SPDX-License-Identifier: MIT
pkgnames=(7zip)
pkgdesc="A file archiver with a high compression ratio."
url="https://www.7-zip.org/"
section="utils"
pkgver=23.01-1
timestamp=2023-06-20T00:00:00Z
maintainer="Eeems <eeems@eeems.email>"
license=LGPL-2.1-or-later
source=(
    https://www.7-zip.org/a/7z2301-linux-arm.tar.xz
)
sha256sums=(
    9d67650982f819d7557c27dea748fa66ca6c04a3a1148d66716c463580b0550c
)

package() {
    install -dm 755 "$pkgdir"/opt/usr/share/licenses/7zip
    install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/7zz
    cp -dr --no-preserve='ownership' "$srcdir"/License.txt "$pkgdir"/opt/usr/share/licenses/7zip
}
