leaf/misc/PKGBUILD.code-snippets

24 lines
486 B
Plaintext

{
"PKGBUILD": {
"prefix": "PKGBUILD",
"body": [
"pkgname=\"$1\"",
"pkgver=\"$2\"",
"pkgdesc=\"$3\"",
"homepage=\"$4\"",
"license=(\"$5\")",
"sources=(\"\\${pkgname}-\\${pkgver}.tar.xz\")",
"",
"src_prepare() {",
" tar -xf \\${DIST_DIR}/\\${pkgname}-\\${pkgver}/\\${sources[0]} --strip-components=1",
"}",
"",
"src_build() {",
" $6",
"}",
""
],
"description": "PKGBUILD"
}
}