diff options
author | btd1337 | 2018-08-25 00:56:07 -0300 |
---|---|---|
committer | btd1337 | 2018-08-25 00:56:07 -0300 |
commit | 8e35514385e57e9f3f6c9c8956f83875bc04104c (patch) | |
tree | 3e748509ab8a8a7769c36e43f461101268ab5bba | |
download | aur-8e35514385e57e9f3f6c9c8956f83875bc04104c.tar.gz |
initial release
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 47 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8efcfbdc0d43 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = torrential-git + pkgdesc = Download torrents in style with this speedy, minimalist torrent client designed for Pantheon Shell + pkgver = latest + pkgrel = 1 + url = https://github.com/davidmhewitt/torrential + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = cmake + makedepends = vala + makedepends = git + depends = gtk3 + depends = vala + depends = granite + depends = curl + depends = libarchive + depends = libevent + depends = miniupnpc + depends = openssl + provides = torrential + conflicts = torrential + source = git+https://github.com/davidmhewitt/torrential.git + md5sums = SKIP + +pkgname = torrential-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b25c15b81fae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..54160ff2438c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Helder Bertoldo <helder.bertoldo@gmail.com> +# Contributor: + +_gitname=torrential +_author=davidmhewitt +pkgname=("${_gitname}-git") +pkgver=latest +pkgrel=1 +pkgdesc="Download torrents in style with this speedy, minimalist torrent client designed for Pantheon Shell" +arch=('i686' 'x86_64') +url="https://github.com/${_author}/${_gitname}" +license=('GPL3') +depends=('gtk3' 'vala' 'granite' + 'curl' 'libarchive' 'libevent' 'miniupnpc' 'openssl') +optdepends=() +makedepends=('cmake' 'vala' 'git') +provides=("${_gitname}") +conflicts=("${_gitname}") +source=("git+${url}.git") +md5sums=('SKIP') + +pkgver() { + cd "${_gitname}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd "${_gitname}" + install -d build +} + +build() { + cd "${_gitname}/build" + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "${_gitname}/build" + make DESTDIR="${pkgdir}" install +} + |