1
0
Fork 0

Init from template

archlinux
ltdk 2 years ago
commit 139fa8bddf
  1. 1
      .gitea/template
  2. 4
      .gitignore
  3. 27
      PKGBUILD

@ -0,0 +1 @@
PKGBUILD

4
.gitignore vendored

@ -0,0 +1,4 @@
pkg/
src/
*.tar.xz
*.pkg.tar.zst

@ -0,0 +1,27 @@
# Maintainer: ltdk <usr@ltdk.xyz>
pkgname=${REPO_NAME}
pkgver=1.0.0
pkgrel=1
pkgdesc='${REPO_DESCRIPTION}'
arch=(aarch64 x86_64)
url="https://vc.ltdk.xyz/${REPO_OWNER}/${REPO_NAME}"
license=(ACSL)
makedepends=(rustup)
source=("https://dl.ltdk.xyz/$pkgname/$pkgname-v$pkgver.tar.xz")
sha256sums=('')
prepare() {
rustup install nightly
}
build() {
cd "$srcdir"
cargo +nightly build --release
mkdir -p usr/bin
cp target/release/${REPO_NAME} usr/bin
}
package() {
cp -R "$srcdir/usr" -T "$pkgdir/usr"
install -D "$srcdir/LICENSE.md" -T "$pkgdir/usr/share/licenses/${REPO_NAME}/LICENSE.md"
}
Loading…
Cancel
Save