abraunegg-onedrive/contrib/pacman/PKGBUILD.in
abraunegg a3522fda30
OneDrive Client for Linux v2.5.0 (#2805)
OneDrive Client for Linux v2.5.0

---------

Signed-off-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
Co-authored-by: JC-comp <147694781+JC-comp@users.noreply.github.com>
Co-authored-by: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com>
Co-authored-by: Pierrick Caillon <megamisan@users.noreply.github.com>
Co-authored-by: Pierrick Caillon <pierrick.caillon@megami.fr>
Co-authored-by: Thomas Staudinger <Staudi.Kaos@gmail.com>
Co-authored-by: Yuan Liu <Lyncredible@users.noreply.github.com>
2024-09-16 11:14:46 +10:00

32 lines
829 B
Text

pkgname=onedrive
pkgver=@PACKAGE_VERSION@
pkgrel=1 # Patch-level (increment this when a patch is applied)
pkgdesc="OneDrive Client for Linux"
license=("GPL3")
url="https://github.com/abraunegg/onedrive/"
arch=("i686" "x86_64")
depends=("curl" "gcc-libs" "glibc" "sqlite")
makedepends=("dmd" "git" "tar" "make")
source=("https://github.com/abraunegg/onedrive/archive/v$pkgver.tar.gz")
sha256sums=('SKIP') # Use SKIP or actual checksum
prepare() {
cd "$srcdir"
tar -xzf "$pkgname-$pkgver.tar.gz" --one-top-level="$pkgname-$pkgver" --strip-components 1
}
build() {
cd "$srcdir/$pkgname-$pkgver"
git init
git add .
git commit --allow-empty-message -m ""
git tag "v$pkgver"
make PREFIX=/usr onedrive
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make PREFIX=/usr DESTDIR="$pkgdir" install
}