frok from rsync://littlefoxpro.xyz/repository/leaf
This commit is contained in:
23
misc/PKGBUILD.code-snippets
Normal file
23
misc/PKGBUILD.code-snippets
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user