diff options
author | nycex | 2023-06-02 16:59:27 +0200 |
---|---|---|
committer | nycex | 2023-06-02 16:59:27 +0200 |
commit | d8307fd0303dcd79fb91a433d2201b744227a1a5 (patch) | |
tree | 9a416a23e29b97c3653f602d6a13c435c66c26fc | |
parent | 88d8cc9a3dceee8eaa7ee96d9a0ea41ed0df87ed (diff) | |
download | aur-d8307fd0303dcd79fb91a433d2201b744227a1a5.tar.gz |
zig has a package management system now
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 3 insertions, 14 deletions
@@ -13,8 +13,6 @@ pkgbase = zls-git conflicts = zls replaces = zls-master-data-git source = git+https://github.com/zigtools/zls - source = git+https://github.com/ziglibs/known-folders - sha256sums = SKIP sha256sums = SKIP pkgname = zls-git @@ -12,23 +12,14 @@ replaces=('zls-master-data-git') license=('MIT') depends=('zig') makedepends=('git') -source=(git+https://github.com/zigtools/${_pkgbasename} - git+https://github.com/ziglibs/known-folders) -sha256sums=('SKIP' - 'SKIP') - +source=(git+https://github.com/zigtools/${_pkgbasename}) +sha256sums=('SKIP') + pkgver() { cd "${srcdir}/${_pkgbasename}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } -prepare() { - cd "${srcdir}/${_pkgbasename}" - git submodule init - git config submodule.known-folders.url "$srcdir"/known-folders - git submodule update -} - build() { cd "${srcdir}/${_pkgbasename}" zig build -Doptimize=ReleaseSafe |