diff options
Diffstat (limited to 'main/transmission/APKBUILD')
-rw-r--r-- | main/transmission/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/transmission/APKBUILD b/main/transmission/APKBUILD new file mode 100644 index 0000000000..7bd64c5efa --- /dev/null +++ b/main/transmission/APKBUILD @@ -0,0 +1,47 @@ +# Maintainer:Carlo Landmeter +pkgname=transmission +pkgver=1.74 +pkgel=1 +pkgdesc="Lightweight GTK BitTorrent client" +url="http://www.tansmissionbt.com" +install="$pkgname.pre-install" +license="MIT" +depends= +makedepends="openssl-dev pkgconfig curl-dev gtk+-dev intltool" +source="http://download.m0k.org/transmission/files/transmission-$pkgver.tar.bz2 + transmission-daemon.initd + transmission-daemon.confd + " +subpackages="$pkgname-cli $pkgname-daemon $pkgname-doc" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --mandir=/usr/share/man + make || return 1 + make DESTDIR="$pkgdir" install +} + +daemon() { + pkgdesc="Lightweight BitTorrent client (daemon and webinterface)" + install -d "$subpkgdir"/usr/share "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/transmission-daemon "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/share/transmission "$subpkgdir"/usr/share/ + install -D -m755 "$srcdir"/transmission-daemon.initd \ + "$pkgdir"/etc/init.d/transmission-daemon + install -D -m644 "$srcdir"/transmission-daemon.confd \ + "$pkgdir"/etc/conf.d/transmission-daemon +} + +cli() { + pkgdesc="Lightweight BitTorrent client (cli and remote)" + install -d "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/transmission-remote \ + "$pkgdir"/usr/bin/transmissioncli \ + "$subpkgdir"/usr/bin/ +} + +md5sums="6b1080800c62308179cfc7a691c82d63 transmission-1.74.tar.bz2 +f65b8ae46f8ac89b35844109b3aa0c18 transmission-daemon.initd +89478a70fcd93463e1dd8d751da994da transmission-daemon.confd" |