summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Newgard2018-02-20 09:49:45 -0600
committerDoug Newgard2018-02-20 09:49:45 -0600
commit9a6c1681accd9832850253701a9aa682c1ef80fd (patch)
tree897b42b3a81538315c89a8115e13c9015b708033
parentfce16296af5d97da865d8606ecbccefafded5e2f (diff)
downloadaur-9a6c1681accd9832850253701a9aa682c1ef80fd.tar.gz
Add back release package
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD20
-rw-r--r--onedrive.install5
3 files changed, 12 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9f7ff5410ae..498a6a9c318 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,8 @@
pkgbase = onedrive
pkgdesc = Free OneDrive client written in D
- pkgver = 1.1
- pkgrel = 3
+ pkgver = 1.1.1
+ pkgrel = 1
url = https://github.com/skilion/onedrive
- install = onedrive.install
arch = i686
arch = x86_64
license = GPL3
@@ -12,9 +11,8 @@ pkgbase = onedrive
depends = gcc-libs
depends = glibc
depends = sqlite
- backup = etc/onedrive.conf
- source = onedrive-1.1.tar.gz::https://github.com/skilion/onedrive/archive/v1.1.tar.gz
- sha256sums = c54fad2b452a6a84e009f8743efecdaaca37abcbfe046fc830d7e101cac3594d
+ source = onedrive-1.1.1.tar.gz::https://github.com/skilion/onedrive/archive/v1.1.1.tar.gz
+ sha256sums = fb51c81ec95c28f3fe3b29e3b7f915e30161bd5f4b14bb53ae5c2233cc1e92e9
pkgname = onedrive
diff --git a/PKGBUILD b/PKGBUILD
index f402170c2dd..dde3be71eb7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,31 +2,27 @@
# Contributor: Jameson Pugh <imntreal@gmail.com>
pkgname=onedrive
-pkgver=1.1
-pkgrel=3
+pkgver=1.1.1
+pkgrel=1
pkgdesc='Free OneDrive client written in D'
arch=('i686' 'x86_64')
url='https://github.com/skilion/onedrive'
license=('GPL3')
depends=('curl' 'gcc-libs' 'glibc' 'sqlite')
makedepends=('dmd')
-backup=('etc/onedrive.conf')
-install=$pkgname.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/skilion/onedrive/archive/v$pkgver.tar.gz")
-sha256sums=('c54fad2b452a6a84e009f8743efecdaaca37abcbfe046fc830d7e101cac3594d')
+sha256sums=('fb51c81ec95c28f3fe3b29e3b7f915e30161bd5f4b14bb53ae5c2233cc1e92e9')
prepare() {
- sed -i 's|/usr/local|/usr|g' $pkgname-$pkgver/onedrive.service
+ printf 'v%s\n' "$pkgver" > $pkgname-$pkgver/version
+ sed -i '/^onedrive:/ s/version //' $pkgname-$pkgver/Makefile
}
build() {
- make -C $pkgname-$pkgver
+ make PREFIX=/usr -C $pkgname-$pkgver
}
package() {
- cd $pkgname-$pkgver
-
- install -Dm755 onedrive -t "$pkgdir/usr/bin/"
- install -Dm644 onedrive.conf -t "$pkgdir/etc/"
- install -Dm644 onedrive.service -t "$pkgdir/usr/lib/systemd/user/"
+ make PREFIX=/usr DESTDIR="$pkgdir" -C $pkgname-$pkgver install
+ install -Dm644 $pkgname-$pkgver/config "$pkgdir/usr/share/onedrive/config.default"
}
diff --git a/onedrive.install b/onedrive.install
deleted file mode 100644
index 5ce43b35620..00000000000
--- a/onedrive.install
+++ /dev/null
@@ -1,5 +0,0 @@
-post_install() {
- printf "You will need to manually create ~/OneDrive after installation\n"
- printf "or modify onedrive.conf to use a different directory"
-}
-