aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/transmission/APKBUILD34
1 files changed, 22 insertions, 12 deletions
diff --git a/main/transmission/APKBUILD b/main/transmission/APKBUILD
index 77300d5546..a31d7cce18 100644
--- a/main/transmission/APKBUILD
+++ b/main/transmission/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer:Carlo Landmeter
pkgname=transmission
pkgver=2.75
-pkgrel=0
+pkgrel=1
pkgdesc="Lightweight GTK BitTorrent client"
url="http://www.tansmissionbt.com"
install="transmission-daemon.pre-install transmission-daemon.post-upgrade"
@@ -36,26 +36,36 @@ build() {
cd "$_builddir"
./configure --prefix=/usr \
- --mandir=/usr/share/man
-
-make || return 1
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-utp \
+ --with-inotify \
+ || return 1
+ make || return 1
}
package() {
cd "$_builddir"
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install || return 1
}
daemon() {
pkgdesc="Lightweight BitTorrent client (daemon and webinterface)"
- install -d "$subpkgdir"/usr/share "$subpkgdir"/usr/bin
- install -d -o transmission -g transmission "$subpkgdir"/var/lib/transmission
- mv "$pkgdir"/usr/bin/transmission-daemon "$subpkgdir"/usr/bin/
- mv "$pkgdir"/usr/share/transmission "$subpkgdir"/usr/share/
+ install -d "$subpkgdir"/usr/share \
+ "$subpkgdir"/usr/bin || return 1
+ install -d -o transmission -g transmission \
+ "$subpkgdir"/var/lib/transmission \
+ "$subpkgdir"/var/log/transmission || return 1
+ mv "$pkgdir"/usr/bin/transmission-daemon \
+ "$subpkgdir"/usr/bin/ || return 1
+ mv "$pkgdir"/usr/share/transmission \
+ "$subpkgdir"/usr/share/ || return 1
install -D -m755 "$srcdir"/transmission-daemon.initd \
- "$subpkgdir"/etc/init.d/transmission-daemon
+ "$subpkgdir"/etc/init.d/transmission-daemon || return 1
install -D -m644 "$srcdir"/transmission-daemon.confd \
- "$subpkgdir"/etc/conf.d/transmission-daemon
+ "$subpkgdir"/etc/conf.d/transmission-daemon || return 1
}
cli() {
@@ -66,7 +76,7 @@ cli() {
"$pkgdir"/usr/bin/transmission-edit \
"$pkgdir"/usr/bin/transmission-show \
"$pkgdir"/usr/bin/transmission-remote \
- "$subpkgdir"/usr/bin/
+ "$subpkgdir"/usr/bin/ || return 1
}
md5sums="ae3a3e7532560c16324e6c8a6386ad22 transmission-2.75.tar.bz2