summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 376bc66d997dbfab131de0e62e2a267b9db790d9 (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
# Maintainer: Sam Tay <sam dot chong dot tay at pm dot me>

pkgname=so-bin
pkgver=0.4.9
pkgrel=1
pkgdesc="A terminal interface for StackOverflow"
provides=('so')
conflicts=('so' 'so-git')
arch=('x86_64' 'aarch64' 'armv7h')
url="https://github.com/samtay/so"
license=(MIT)

source=(LICENSE::${url}/raw/v${pkgver}/LICENSE)
source_x86_64=(archive-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/so-x86_64-unknown-linux-gnu.tar.gz)
source_aarch64=(archive-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/so-aarch64-unknown-linux-gnu.tar.gz)
source_armv7h=(archive-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/so-armv7-unknown-linux-gnueabihf.tar.gz)

sha256sums=(SKIP)
sha256sums_x86_64=('45b9badb70ba65264748dd2a30fc95bd7bba10c0b8890a96974d0cb2704e5181')
sha256sums_aarch64=('45b9badb70ba65264748dd2a30fc95bd7bba10c0b8890a96974d0cb2704e5181')
sha256sums_armv7h=('45b9badb70ba65264748dd2a30fc95bd7bba10c0b8890a96974d0cb2704e5181')

package() {
    install -Dm755 so "$pkgdir"/usr/bin/so
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}