summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7953546f026987e070641a5dcc45fc3fc09cc31 (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
# Maintainer: David Husička <contact@bydave.net>

pkgname=uwuify
pkgver=0.2.2
pkgrel=1
pkgdesc="fastest text uwuifier in the west"
arch=('x86_64')
url="https://github.com/Daniel-Liu-c0deb0t/uwu"
license=('MIT')
depends=('gcc-libs')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Daniel-Liu-c0deb0t/uwu/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=("714a0f2744aed57c495efd3e62b9c4f48ec56a0f5902847099332e608f197a92")

build() {
  cd "uwu-$pkgver"

  cargo build --release --locked
}

check() {
  cd "uwu-$pkgver"

  cargo test --release --locked
}

package() {
  cd "uwu-$pkgver"

  install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"

  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}