diff options
author | khai96_ | 2019-03-28 09:32:00 +0700 |
---|---|---|
committer | khai96_ | 2019-03-28 09:32:00 +0700 |
commit | bba5abadcc60af2d85f62a9663d9c41c2d040eb8 (patch) | |
tree | 94361fb5b92b8a475d21a3c214f49b27e268e98c | |
parent | 5f6464df3d7c5ac6395bdeb348b92ca33d704759 (diff) | |
download | aur-bba5abadcc60af2d85f62a9663d9c41c2d040eb8.tar.gz |
Move script content out of PKGBUILD
-rw-r--r-- | PKGBUILD | 11 | ||||
-rw-r--r-- | srcinfo | 2 |
2 files changed, 4 insertions, 9 deletions
@@ -8,15 +8,8 @@ arch=(any) url="https://github.com/KSXGitHub/srcinfo.pkgbuild.git" license=(MIT) depends=(pacman bash) -source=(LICENSE.md) -sha512sums=(SKIP) - -build() { - ( - echo '#! /usr/bin/env bash' - echo 'makepkg --printsrcinfo > .SRCINFO' - ) > srcinfo -} +source=(srcinfo LICENSE.md) +sha512sums=(SKIP SKIP) package() { install -Dm755 srcinfo "$pkgdir"/usr/bin/srcinfo diff --git a/srcinfo b/srcinfo new file mode 100644 index 000000000000..cabbfb0d65dd --- /dev/null +++ b/srcinfo @@ -0,0 +1,2 @@ +#! /usr/bin/bash +makepkg --printsrcinfo > .SRCINFO |