summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd035897878a883bd02fe8cd7802d71e2dd84a77 (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
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor: Francois Boulogne <fboulogne at april dot org>
pkgname=gentorrent-git
pkgver=r35.9e49248
pkgrel=3
pkgdesc="A torrent generator"
arch=('i686' 'x86_64' 'aarch64')
url="https://tanguy.ortolo.eu/perso/pages/projets/gentorrent"
license=('AGPLv3')
makedepends=('git')
source=("git+https://git.ortolo.eu/git/gentorrent.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/gentorrent"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/gentorrent"
  install -Dm755 gentorrent.py ${pkgdir}/usr/bin/gentorrent
  install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/"${pkgname}"/COPYING
}

# vim:set ts=2 sw=2 et: