diff options
author | Deposite Pirate | 2020-10-27 13:39:27 +0100 |
---|---|---|
committer | Deposite Pirate | 2020-10-27 13:39:27 +0100 |
commit | fa297ee70f74b37901e643dd464c9e268d91d2ab (patch) | |
tree | 887b3918efdc119bdb6fa8c6abc9bf200dc62f79 | |
download | aur-fa297ee70f74b37901e643dd464c9e268d91d2ab.tar.gz |
* Initial commit.
new file: .SRCINFO
new file: PKGBUILD
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6e5d1c947516 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = youtubedr + pkgdesc = Download YouTube videos + pkgver = 2.1.1 + pkgrel = 1 + url = https://github.com/kkdai/youtube + arch = x86_64 + license = MIT + makedepends = go + makedepends = git + depends = glibc + source = git+https://github.com/kkdai/youtube#tag=v2.1.1 + sha256sums = SKIP + +pkgname = youtubedr + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b887205501b5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Deposite Pirate <dpirate@metalpunks.info> +# +# Upstream: https://git.metalpunks.info/arch-ports + +_pkgname=youtube +pkgname=youtubedr +pkgver=2.1.1 +pkgrel=1 +pkgdesc="Download YouTube videos" +arch=('x86_64') +url="https://github.com/kkdai/youtube" +license=('MIT') +depends=('glibc') +makedepends=('go' 'git') +source=("git+$url#tag=v$pkgver") +sha256sums=('SKIP') + +build() { + cd "${srcdir}/${_pkgname}" + GOOS=linux GOARCH=amd64 \ + CGO_CPPFLAGS="${CPPFLAGS}" \ + CGO_CFLAGS="${CFLAGS}" \ + CGO_CXXFLAGS="${CXXFLAGS}" \ + go build -v \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \ + -o build ./cmd/... +} + +check() { + cd "${srcdir}/${_pkgname}" + go test +} + +package() { + cd "${srcdir}/${_pkgname}" + install -Dm755 build "$pkgdir/usr/bin/${pkgname}" +} |