diff options
author | Max Jöhnk | 2022-10-21 13:04:19 +0200 |
---|---|---|
committer | Max Jöhnk | 2022-10-21 13:04:19 +0200 |
commit | 3eb4670bb71182417740df9c0110fdf764def3c2 (patch) | |
tree | 935e9a7f725d499d63aab7d069f0e2d78eb97f14 | |
download | aur-3eb4670bb71182417740df9c0110fdf764def3c2.tar.gz |
chore: initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e8b234ba25de --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = rustic-git + pkgdesc = A self hosted music server with support for many streaming services + pkgver = r406.d7ce0b5 + pkgrel = 1 + url = https://github.com/rustic-music-player/rustic + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + license = GPL3 + makedepends = git + makedepends = cargo-nightly + provides = rustic + source = rustic-git::git+https://github.com/rustic-music-player/rustic + md5sums = SKIP + +pkgname = rustic-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..293003e2639a --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg +src +rustic-git +*.pkg.tar.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..96a6cf7edf19 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Max Jöhnk <maxjoehnk@gmail.com> +pkgname=rustic-git +pkgver=r406.d7ce0b5 +pkgrel=1 +pkgdesc='A self hosted music server with support for many streaming services' +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +url="https://github.com/rustic-music-player/rustic" +license=('GPL3') +groups=() +depends=() +makedepends=('git' 'cargo') +provides=('rustic') +conflicts=() +replaces=() +backup=() +options=() +install= +source=("${pkgname}::git+${url}") +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-VCS}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/${pkgname%-VCS}" + + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$srcdir/${pkgname%-VCS}" + + export CARGO_TARGET_DIR=target + cargo build --frozen --release +} + +package() { + cd "$srcdir/${pkgname%-VCS}" + + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/rustic" +} |