Commit 32d38dd27a

32d38dd27a8ebd4886449641765e14613c0645f4

parent: 611b164e42

Unsigned

Zaedus <nintendozaedus@gmail.com> · 2022-07-09 03:51 UTC

Create PKGBUILD

Layout: unified · split

PKGBUILD added +51
@@ -0,0 +1,51 @@
1# This is an example PKGBUILD file. Use this as a start to creating your own,
2# and remove these comments. For more information, see 'man PKGBUILD'.
3# NOTE: Please fill out the license field for your package! If it is unknown,
4# then please put 'unknown'.
5
6# Maintainer: Zaedus <nintendozaedus@gmail.com>
7pkgname=youtube-tui
8pkgver=0.0.1
9pkgrel=1
10pkgdesc="An aesthetically pleasing TUI frontend to browsing YouTube written in Rust."
11arch=()
12url="https://github.com/Siriusmart/youtube-tui"
13license=('GPL')
14groups=()
15depends=('mpv')
16makedepends=('rust' 'cargo' 'git')
17checkdepends=()
18optdepends=()
19provides=('youtube-tui')
20conflicts=('youtube-tui')
21replaces=()
22backup=()
23options=()
24install=
25changelog=
26source=("$pkgname-$pkgver.tar.gz"
27 "$pkgname-$pkgver.patch")
28noextract=()
29md5sums=()
30validpgpkeys=()
31
32prepare() {
33 cd "$pkgname-$pkgver"
34 patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
35}
36
37build() {
38 cd "$pkgname-$pkgver"
39 ./configure --prefix=/usr
40 make
41}
42
43check() {
44 cd "$pkgname-$pkgver"
45 make -k check
46}
47
48package() {
49 cd "$pkgname-$pkgver"
50 make DESTDIR="$pkgdir/" install
51}