mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-15 20:26:53 +02:00
Add PKGBUILD for makepkg (#231)
* This PKGBUILD file for makepkg automatically clones the current version of the master branch, builds it and creates a pacman package
This commit is contained in:
parent
8a98bf3e30
commit
df7ff4f7b7
30
pacman/PKGBUILD
Normal file
30
pacman/PKGBUILD
Normal file
|
@ -0,0 +1,30 @@
|
|||
pkgname=onedrive
|
||||
pkgver=2.1.5
|
||||
pkgrel=1 #patch-level (Increment this when patch is applied)
|
||||
pkgdesc="A free OneDrive Client for Linux. This is a fork of the https://github.com/skilion/onedrive repository"
|
||||
license=("unknown")
|
||||
url="https://github.com/abraunegg/onedrive/"
|
||||
arch=("i686" "x86_64")
|
||||
|
||||
depends=("curl" "gcc-libs" "glibc" "sqlite")
|
||||
makedepends=("dmd" "git" "tar")
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"
|
||||
wget "https://github.com/abraunegg/onedrive/archive/v$pkgver.tar.gz" -O "$pkgname-$pkgver-patch-$pkgrel.tar.gz" #Pull last commit release
|
||||
tar -xzf "$pkgname-$pkgver-patch-$pkgrel.tar.gz" --one-top-level="$pkgname-$pkgver-patch-$pkgrel" --strip-components 1
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver-patch-$pkgrel"
|
||||
git init #Create .git folder required from Makefile
|
||||
git add * #Create .git/index
|
||||
git commit --allow-empty-message -m "" #Create .git/refs/heads/master
|
||||
git tag v$pkgver #Add version tag
|
||||
make PREFIX=/usr onedrive
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver-patch-$pkgrel"
|
||||
make PREFIX=/usr DESTDIR="$pkgdir" install
|
||||
}
|
Loading…
Reference in a new issue