blob: 1116df8aef98e5979efeec57e9d6fefd63f4412c (
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
|
# Maintainer: Sebastian Kootz - skxxtz@gmail.com
pkgbase="sherlock-launcher"
pkgname="sherlock-launcher-bin"
pkgver=0.1.1
pkgrel=1
pkgdesc="Application launcher for Wayland."
arch=('x86_64')
url="https://github.com/skxxtz/sherlock"
license=('custom:CC-BY-NC-4.0')
depends=('gtk4' 'gtk4-layer-shell')
makedepends=('cargo' 'rust')
# Define sources per subpackage
source=("https://github.com/skxxtz/sherlock/releases/download/v${pkgver}/sherlock-v${pkgver}-bin-linux-x86_64.tar.gz")
sha256sums=('SKIP')
# Prepare source for Git version
prepare() {
if [[ "$pkgname" == "sherlock-launcher-git" ]]; then
cd "$srcdir/sherlock"
git clean -fdx
git reset --hard HEAD
fi
}
package() {
conflicts=("sherlock-launcher-git")
cd "$srcdir"
mkdir -p extracted
tar -xzf "sherlock-v${pkgver}-bin-linux-x86_64.tar.gz" -C extracted
install -Dm755 "extracted/sherlock" "$pkgdir/usr/bin/sherlock"
install -Dm644 "extracted/LICENSE" "$pkgdir/usr/share/licenses/sherlock-launcher/LICENSE"
}
|