Created
March 4, 2015 19:50
-
-
Save joeydumont/a423c1c8a9420463a987 to your computer and use it in GitHub Desktop.
PKGBUILD for onedrive-d-git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Pietro Brenna <[email protected]> | |
pkgname=onedrive-d-git | |
pkgver=20150227.g84c5956 | |
pkgdesc="Client daemon for Microsoft OneDrive service" | |
source=('git://github.com/xybu92/onedrive-d.git' 'onedrive-d.desktop' 'setup.patch') | |
md5sums=('SKIP' | |
'8077d9697c922e003b8addbf243b33a4' | |
'0e71e4cb891b9d5e42b1c3a1f1a4451a') | |
arch=('i686' 'x86_64') | |
license=('LGPL') | |
url="https://github.com/xybu92/onedrive-d" | |
pkgrel=1 | |
provides='onedrive-d' | |
depends=('pywebkitgtk' 'inotify-tools' 'python-gobject' 'python-requests' 'python-pip') | |
makedepends=('git') | |
pkgver() { | |
cd $srcdir/onedrive-d | |
git log -1 --format="%cd.g%h" --date=short | sed 's/-//g' | |
} | |
build() { | |
cd $srcdir/onedrive-d | |
patch -Np1 -i ../setup.patch | |
python setup.py build | |
} | |
package() { | |
cd $srcdir/onedrive-d | |
#onedrive-d has an install script which does not support arch linux | |
#it contains APP_CLIENT_ID and APP_CLIENT_SECRET which I guess are | |
#needed for the program to work | |
#eval `cat inst | grep APP_CLIENT_ID` | |
#eval `cat inst | grep APP_CLIENT_SECRET` | |
python setup.py install --root="$pkgdir/" --optimize=1 | |
python setup.py clean | |
install -D onedrive_d/res/icon_256.png \ | |
$pkgdir/usr/share/pixmaps/onedrive-d.png | |
cd ../ | |
install -D ../onedrive-d.desktop \ | |
$pkgdir/usr/share/applications/onedrive-d.desktop | |
#rm -r build | |
#cp "./onedrive-d" "/etc/init.d/onedrive-d" | |
#chmod u+x "/etc/init.d/onedrive-d" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -aur onedrive-d.pristine/setup.py onedrive-d.new/setup.py | |
--- onedrive-d.pristine/setup.py 2015-03-04 14:43:03.877322490 -0500 | |
+++ onedrive-d.new/setup.py 2015-03-04 14:43:31.773886702 -0500 | |
@@ -1,6 +1,7 @@ | |
#!/usr/bin/python3 | |
import os | |
+import uuid | |
from setuptools import setup, find_packages | |
from pip.req import parse_requirements | |
@@ -10,7 +11,7 @@ | |
except IOError: | |
readme = 'Please read README.md for more details' | |
-requirements = parse_requirements('requirements.txt') | |
+requirements = parse_requirements('requirements.txt', session=uuid.uuid1()) | |
requirements = [str(r.req) for r in requirements] | |
setup( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment