diff --git a/pkgbuilds/shared/localsend/.SRCINFO b/pkgbuilds/shared/localsend/.SRCINFO index f047a03..51ce9d9 100644 --- a/pkgbuilds/shared/localsend/.SRCINFO +++ b/pkgbuilds/shared/localsend/.SRCINFO @@ -1,10 +1,11 @@ pkgbase = localsend pkgdesc = An open source cross-platform alternative to AirDrop pkgver = 1.17.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/localsend/localsend arch = x86_64 - license = MIT + arch = aarch64 + license = Apache-2.0 makedepends = clang makedepends = cmake makedepends = fvm diff --git a/pkgbuilds/shared/localsend/PKGBUILD b/pkgbuilds/shared/localsend/PKGBUILD index 0544140..fd7f4b2 100644 --- a/pkgbuilds/shared/localsend/PKGBUILD +++ b/pkgbuilds/shared/localsend/PKGBUILD @@ -1,21 +1,16 @@ # Maintainer: # Contributor: Patrick Northon -## links -# https://localsend.org/ -# https://github.com/localsend/localsend - -## options : ${_install_path:=usr/lib} _pkgname="localsend" pkgname="$_pkgname" pkgver=1.17.0 -pkgrel=2 +pkgrel=3 pkgdesc="An open source cross-platform alternative to AirDrop" url="https://github.com/localsend/localsend" -license=('MIT') -arch=('x86_64') +license=('Apache-2.0') +arch=('x86_64' 'aarch64') depends=( 'libayatana-appindicator' @@ -23,7 +18,7 @@ depends=( makedepends=( 'clang' 'cmake' - 'fvm' # AUR + 'fvm' 'git' 'lld' 'llvm' @@ -58,7 +53,12 @@ build() ( ) package() { - cd "$_pkgsrc/app/build/linux/x64/release/bundle" + local _arch="x64" + if [[ "${CARCH::1}" == "a" ]]; then + _arch="arm64" + fi + + cd "$_pkgsrc/app/build/linux/$_arch/release/bundle" # files install -Dm755 "localsend_app" "$pkgdir/$_install_path/$_pkgname/$_pkgname"