diff options
author | LinArcX | 2018-07-18 00:53:53 +0430 |
---|---|---|
committer | LinArcX | 2018-07-18 00:53:53 +0430 |
commit | 7cade124d27928da2306c2da713b992af37eca49 (patch) | |
tree | ba06f2ee722250ee27b8564723e08927879b6ace | |
download | aur-7cade124d27928da2306c2da713b992af37eca49.tar.gz |
Init AUR Repo
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c3aa08475230 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = hello_wolrd_cpp_pkgbuild + pkgdesc = Hello World C++ PKGBUILD + pkgver = r2.ba4f8df + pkgrel = 1 + url = https://gitlab.com/LinArcX/hello_wolrd_cpp_pkgbuild + arch = any + license = GPL-3.0 + source = hello_wolrd_cpp_pkgbuild::git+https://gitlab.com/LinArcX/hello_wolrd_cpp_pkgbuild.git + sha256sums = SKIP + +pkgname = hello_wolrd_cpp_pkgbuild + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d86a190a3e2a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: LinArcx <linarcx@gmail.com> + +pkgname='hello_wolrd_cpp_pkgbuild' +pkgver=r2.ba4f8df +pkgrel=1 +pkgdesc="Hello World C++ PKGBUILD" +arch=('any') +url="https://gitlab.com/LinArcX/hello_wolrd_cpp_pkgbuild" +license=('GPL-3.0') + +source=("${pkgname}::git+https://gitlab.com/LinArcX/hello_wolrd_cpp_pkgbuild.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "${srcdir}/${pkgname}" + make # g++ -o helloworldcpp HelloWorld.cpp # or make HelloWorld :) +} + +package() { + cd "${srcdir}/${pkgname}" + install -Dm644 hello-world-cpp-pkgbuild ${pkgdir}/usr/bin/hello-world-cpp-pkgbuild # what is install? see: man install + chmod +x ${pkgdir}/usr/bin/hello-world-cpp-pkgbuild +} |