summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b49b7825ce30a417d5246a1ed48c5ab47a4e04b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Manuel Thalmann <m@nuth.ch>
_pkgname=aliae
_repo="JanDeDobbeleer/$_pkgname"
pkgname="$_pkgname-bin"
pkgver=0.26.3
pkgrel=1
_filename="$_pkgname-$pkgver-$pkgrel"
pkgdesc="Cross shell and platform alias management"
arch=(x86_64 armv7h aarch64)
url="https://aliae.dev"
license=('MIT')
groups=()
depends=('ncurses')
makedepends=('curl' 'git' 'jq' 'sed')
provides=("$_pkgname")
conflicts=("$_pkgname")
replaces=()
backup=()
options=()
install="$pkgname.install"
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(
    "LICENSE::https://raw.githubusercontent.com/$_repo/v$pkgver/LICENSE"
)
source_x86_64=("$_filename::https://github.com/$_repo/releases/download/v$pkgver/$_pkgname-linux-amd64")
source_armv7h=("$_filename::https://github.com/$_repo/releases/download/v$pkgver/$_pkgname-linux-arm")
source_aarch64=("$_filename::https://github.com/$_repo/releases/download/v$pkgver/$_pkgname-linux-arm64")
noextract=()
sha256sums=('df419cb226a6174d115f4306653312cb924e47c8e87209243ecb76a4031355cf')
sha256sums_x86_64=('1ab228e91fb16ed3e7f7d0766b460c15c3cbf9baa5a2233a8eb3e2804d26d6c8')
sha256sums_armv7h=('1ab228e91fb16ed3e7f7d0766b460c15c3cbf9baa5a2233a8eb3e2804d26d6c8')
sha256sums_aarch64=('1ab228e91fb16ed3e7f7d0766b460c15c3cbf9baa5a2233a8eb3e2804d26d6c8')

pkgver() {
    curl --silent -L "https://api.github.com/repos/$_repo/releases/latest" | # Get latest release from GitHub api
        jq -r .tag_name | # Get tag name
        sed 's/^v//' # Remove leading `v`
}

package() {
    install -Dm755 "$_filename" "$pkgdir/usr/bin/$_pkgname"
    install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"    
}