summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkhai96_2019-03-28 09:32:00 +0700
committerkhai96_2019-03-28 09:32:00 +0700
commitbba5abadcc60af2d85f62a9663d9c41c2d040eb8 (patch)
tree94361fb5b92b8a475d21a3c214f49b27e268e98c
parent5f6464df3d7c5ac6395bdeb348b92ca33d704759 (diff)
downloadaur-bba5abadcc60af2d85f62a9663d9c41c2d040eb8.tar.gz
Move script content out of PKGBUILD
-rw-r--r--PKGBUILD11
-rw-r--r--srcinfo2
2 files changed, 4 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ecd8aa4a27d2..645066801fdb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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