diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-11 18:26:02 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-11 18:26:22 +0200 |
commit | 38e27c154653d9bf0ae411cfbc4e1147d504c5f2 (patch) | |
tree | 29041f94f47f60a951d88eb6c1d2871c763108b8 /main/transmission/APKBUILD | |
parent | 4477f53e2ced8334f963ce04d5ca85c859d56f8a (diff) | |
download | aports-38e27c154653d9bf0ae411cfbc4e1147d504c5f2.tar.bz2 aports-38e27c154653d9bf0ae411cfbc4e1147d504c5f2.tar.xz |
main/transmission: improve abuild
Diffstat (limited to 'main/transmission/APKBUILD')
-rw-r--r-- | main/transmission/APKBUILD | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/main/transmission/APKBUILD b/main/transmission/APKBUILD index 62bc9d448d..5893475fea 100644 --- a/main/transmission/APKBUILD +++ b/main/transmission/APKBUILD @@ -7,7 +7,7 @@ url="http://www.tansmissionbt.com" install="transmission-daemon.pre-install transmission-daemon.post-upgrade" arch="all" license="MIT" -depends= +depends="" pkgusers="transmission" pkggroups="transmission" makedepends="libressl-dev curl-dev gtk+3.0-dev intltool libevent-dev @@ -16,26 +16,12 @@ makedepends="libressl-dev curl-dev gtk+3.0-dev intltool libevent-dev source="https://github.com/transmission/$pkgname-releases/raw/master/$pkgname-$pkgver.tar.xz musl-fix-includes.patch transmission-daemon.initd - transmission-daemon.confd - " + transmission-daemon.confd" subpackages="$pkgname-cli $pkgname-daemon $pkgname-doc $pkgname-lang" - -_builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) - msg "Applying $i" - patch -p1 -i "$srcdir"/$i || return 1 - ;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ @@ -53,12 +39,13 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } daemon() { pkgdesc="Lightweight BitTorrent client (daemon and webinterface)" + install -d "$subpkgdir"/usr/share \ "$subpkgdir"/usr/bin || return 1 install -d -o transmission -g transmission \ @@ -75,7 +62,8 @@ daemon() { } cli() { - pkgdesc="Lightweight BitTorrent client (cli and remote)" + pkgdesc="Lightweight BitTorrent client (cli and remote)" + install -d "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/transmission-cli \ "$pkgdir"/usr/bin/transmission-create \ |