summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd5a853efc348a2a58a44ff35858e587e62fffcc (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
pkgname=torrentcheck
pkgver=1.00
pkgrel=4
pkgdesc="Command line torrent viewer and hash checker"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/torrentcheck/"
license=('Public Domain')
depends=()
makedepends=(unzip)

source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.zip")
md5sums=('ba12ae767888837fe3e70fb025d554c2')

prepare() {
  unzip -d "$pkgname-$pkgver" "$pkgname-$pkgver.zip"
}

build() {
  cd "$pkgname-$pkgver"
  gcc -O torrentcheck.c sha1.c -o torrentcheck
}

package() {
  cd "$pkgname-$pkgver"
  mkdir -p "$pkgdir/usr/bin/"
  install -m 755 torrentcheck "$pkgdir/usr/bin/"
}

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