summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Newgard2017-05-28 21:15:29 -0500
committerDoug Newgard2017-05-29 07:05:19 -0500
commit0c9d94ac36efc80f066b314c968629ce76c13ccc (patch)
tree53268f7853c1067b1713cca0d34dc69464813d2a
parent4fbd5282d367c5c0189374b31702b61f2b62c302 (diff)
downloadaur-0c9d94ac36efc80f066b314c968629ce76c13ccc.tar.gz
Upstream fixed their makefile
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD15
2 files changed, 6 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ad909d7c4dd..d5a4084b971 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = onedrive-git
pkgdesc = Free OneDrive client written in D
- pkgver = r132.g88d2a94
+ pkgver = r154.g4511242
pkgrel = 1
epoch = 1
url = https://github.com/skilion/onedrive
@@ -13,7 +13,7 @@ pkgbase = onedrive-git
depends = gcc-libs
depends = glibc
depends = sqlite
- provides = onedrive=r132.g88d2a94
+ provides = onedrive=r154.g4511242
conflicts = onedrive
source = git+https://github.com/skilion/onedrive.git
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 53c7eedd1a5..5af871f785a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=onedrive
pkgname=$_pkgname-git
-pkgver=r132.g88d2a94
+pkgver=r154.g4511242
pkgrel=1
epoch=1
pkgdesc='Free OneDrive client written in D'
@@ -23,18 +23,11 @@ pkgver() {
printf 'r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-prepare() {
- sed -i 's|/usr/local|/usr|g' $_pkgname/onedrive.service
-}
-
build() {
- make -C $_pkgname
+ make PREFIX=/usr -C $_pkgname
}
package() {
- cd $_pkgname
-
- install -Dm755 onedrive -t "$pkgdir/usr/bin/"
- install -Dm644 config "$pkgdir/usr/share/onedrive/config.default"
- install -Dm644 onedrive.service -t "$pkgdir/usr/lib/systemd/user/"
+ make PREFIX=/usr DESTDIR="$pkgdir" -C $_pkgname install
+ install -Dm644 $_pkgname/config "$pkgdir/usr/share/onedrive/config.default"
}