blob: 5044db0915d1ff2f00622bb17488866ea1cf8fe5 (
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
48
49
50
51
|
# Maintainer: timescam <rex.ky.ng at gmail dot com>
pkgname=dvdts-git
_pkgname="dvdts"
pkgver=r17.7a7bdd0
pkgrel=2
pkgdesc="Terminal screensaver similar to dvd bouncing logo; Uses the distro/OS name/custom text instead"
arch=('any')
license=('Unlicense')
url="https://github.com/ameyrk99/dvdts"
depends=(
'go'
)
makedepends=(
'git'
)
provides=('dvdts')
source=("$_pkgname::git+https://github.com/ameyrk99/dvdts.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
rm -rf "$srcdir/.go/src"
mkdir -p "$srcdir/.go/src"
export GOPATH="$srcdir/.go"
mv "$srcdir/$_pkgname" "$srcdir/.go/src/"
cd "$srcdir/.go/src/$_pkgname/"
ln -sf "$srcdir/.go/src/$_pkgname/" "$srcdir/$_pkgname"
echo "Running 'go get'..."
go get
}
package() {
install -Dm755 "$srcdir/.go/bin/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}
|