blob: 39ee3d3487224909d31e6bcf28b0f4b15c597bfa (
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
|
# AUR Package Maintainer: f1reflyylmao <f1refy@airmail.cc>
# Author: Fatih Kadir Akın <f@users.noreply.github.com>
pkgname=guardian-noemoji-git
pkgver=v0.0.5.54d535d
pkgrel=2
pkgdesc="This patched version comes without the emoji"
arch=('any')
url="https://github.com/f/guardian"
license=('MIT')
makedepends=('git' 'crystal')
provides=("${pkgname%-noemoji-git}")
conflicts=("${pkgname%-noemoji-git}")
source=('git+https://github.com/f/guardian.git' 'noemoji.patch')
md5sums=('SKIP' 'f7f3063f5c06492064ccc9efa78ce0b4')
pkgver() {
cd "$srcdir/${pkgname%-noemoji-git}"
echo $(git describe --long --tags | tr '-' '.')
}
prepare() {
cd "$srcdir/${pkgname%-noemoji-git}"
patch -Np1 -i "$srcdir/noemoji.patch"
}
build() {
cd "$srcdir/${pkgname%-noemoji-git}"
crystal build --release src/guardian.cr
}
check() {
cd "$srcdir/${pkgname%-noemoji-git}"
crystal spec
}
package() {
cd "$srcdir/${pkgname%-noemoji-git}"
mkdir -p "$pkgdir/usr/bin/"
cp "$srcdir/guardian/guardian" "$pkgdir/usr/bin/guardian"
}
|