[arch-commits] Commit in tribler/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Mon Aug 20 23:05:54 UTC 2018
Date: Monday, August 20, 2018 @ 23:05:54
Author: ffy00
Revision: 372937
add more details to version.py
Modified:
tribler/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-20 23:01:42 UTC (rev 372936)
+++ PKGBUILD 2018-08-20 23:05:54 UTC (rev 372937)
@@ -4,7 +4,7 @@
pkgname=tribler
_gitver=7.1.0-beta
pkgver=${_gitver//-/_}
-pkgrel=1
+pkgrel=2
pkgdesc="Privacy enhanced BitTorrent client with P2P content discovery"
url="https://www.tribler.org/"
arch=('any')
@@ -28,6 +28,8 @@
prepare() {
cd "$srcdir"/$pkgname
+
+ # Setup submodules
git submodule init
git config submodule.Tribler/dispersy.url "$srcdir"/dispersy
git config submodule.Tribler/Core/DecentralizedTracking/pymdht.url "$srcdir"/pymdht
@@ -39,8 +41,10 @@
sed -i 's|/opt/tribler|/usr/share/tribler|g' systemd/anontunnel_helper at .service
sed -i 's|/opt/tribler|/usr/share/tribler|g' systemd/tribler.service
- # Fix version
- sed -i "s|7.0.0-GIT|$_gitver|g" Tribler/Core/version.py
+ # Fix version info
+ sed -e "s|version_id =.*|version_id = \"$pkgver\"|g"
+ -e "s|build_date =.*|build_date = \"$(date)\"|g"
+ -i Tribler/Core/version.py
}
build () {
@@ -51,10 +55,11 @@
package() {
cd "$srcdir"/$pkgname
+ # Install python modules
python2 setup.py install --root="$pkgdir" --optimize=1
+ # Install binary files/assets
install -dm 755 "$pkgdir"/usr/{bin,share/tribler}
-# install -dm 755 "$pkgdir"/var/lib/{tribler,tunnel_helper}
cp -dr --no-preserve=ownership Tribler "$pkgdir"/usr/share/tribler
cp -dr --no-preserve=ownership TriblerGUI "$pkgdir"/usr/share/tribler
ln -s Tribler/Core/CacheDB/schema_sdb_v*.sql "$pkgdir"/usr/share/tribler/Tribler
@@ -71,7 +76,7 @@
cp -dr --no-preserve=ownership twisted "$pkgdir"/usr/share/tribler
cp -dr --no-preserve=ownership electrum "$pkgdir"/usr/share/tribler
- # Remove tests
+ # Remove test folders
find "$pkgdir" -type d -name "test" -name "tests" -exec rm -rf {} \;
# Install systemd files
More information about the arch-commits
mailing list