blob: 1517ab3acc63723ce865b549be1b023425a1c52f (
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
|
# Maintainer: Aniket Pradhan <aniket17133@iiitd.ac.in>
# Owner/Cofntributer: Xinzhao Xu <z2d@jifangcheng.com>
pkgname=annie
pkgver=0.9.1
pkgrel=1
arch=('x86_64' 'i686')
pkgdesc="A fast, simple and clean video downloader written in Go"
url="https://github.com/iawia002/annie"
license=("MIT")
makedepends=('dep')
depends=('go-pie' 'ffmpeg')
conflicts=("annie")
options=('!strip' '!emptydirs')
source=("annie::git+https://github.com/iawia002/annie#tag=0.9.1")
prepare(){
mkdir -p gopath/src/github.com
ln -rTsf $pkgname $srcdir/gopath/src/github.com/$pkgname
export GOPATH="$srcdir"/gopath
cd $GOPATH/src/github.com/$pkgname
#dep init
dep ensure
}
build(){
export GOPATH=$srcdir/gopath
cd gopath/src/github.com/$pkgname
go install \
-gcflags "all=-trimpath=$GOPATH" \
-asmflags "all=-trimpath=$GOPATH" \
-ldflags "-extldflags $LDFLAGS" \
-v ./...
}
package() {
install -Dm755 gopath/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
for f in LICENSE COPYING LICENSE.* COPYING.*; do
if [ -e "$srcdir/src/$_gourl/$f" ]; then
install -Dm644 "$srcdir/src/$_gourl/$f" \
"$pkgdir/usr/share/licenses/$pkgname/$f"
fi
done
}
md5sums=('SKIP')
|