blob: f51d89560fc2d5f013633188e5345d5a9332f46f (
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
45
46
47
|
# Maintainer: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
pkgname=bkmr
pkgver=1.1.4
# _pkgrev=982145d8ea36d9a78d7c7f828ca5a68f7aa9b524
# _pkgref=$_pkgrev
_pkgrev=$pkgver
_pkgref="refs/tags/v$_pkgrev"
pkgrel=1
pkgdesc='Ultrafast Bookmark Manager and Launcher'
url='https://github.com/sysid/bkmr'
license=('BSD-3-Clause')
arch=('x86_64' 'i686' 'arm' 'aarch64')
depends=('gcc-libs' 'openssl')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sysid/bkmr/archive/$_pkgref.tar.gz")
sha256sums=('b20586f642e0da5beb343d7ff20d8eab7b5a52cf9d9d6559be7c07bfe00ac15a')
b2sums=('39f941547ad3f03d6175e78640efc2f446cb94c1a8ff5f9f579e22f97356cc7fb120c520f6a690f1e0c3d419903ce73cc0aaf33b9dfcb77b15ef66abe51a714a')
case $CARCH in
x86_64|i686|aarch64)
_target="$CARCH-unknown-linux-gnu" ;;
arm)
_target="arm-unknown-linux-gnueabi" ;;
esac
prepare() {
cd "$pkgname-$_pkgrev"
cargo fetch --manifest-path bkmr/Cargo.toml --target $_target
}
build() {
cd "$pkgname-$_pkgrev"
CARGO_TARGET_DIR='target' \
cargo build --manifest-path bkmr/Cargo.toml --frozen --release
}
package() {
cd "$pkgname-$_pkgrev"
install -Dm0755 -t "$pkgdir/usr/bin" \
target/release/bkmr
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|