diff options
author | Louis Solofrizzo | 2019-12-25 16:49:09 +0100 |
---|---|---|
committer | Louis Solofrizzo | 2019-12-25 16:50:16 +0100 |
commit | fdafb658cdf752ec808e6b248e27be8a13135b04 (patch) | |
tree | 422ea58c696f0481a9b1695f50acecaaecca19b6 /PKGBUILD | |
download | aur-fdafb658cdf752ec808e6b248e27be8a13135b04.tar.gz |
shayla-git: Add PKGBUILD
Signed-off-by: Louis Solofrizzo <lsolofrizzo@online.net>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..92205dc70461 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Louis Solofrizzo <louis@ne02ptzero.me> +_pkgname=shayla +pkgname="${_pkgname}-git" +pkgver=1.1.r0.g28bb961 +pkgrel=1 +pkgdesc="A fast and simple static site generator" +arch=("i686" "x86_64" "arm" "armv6h" "armv7h" "aarch64") +url="https://git.mobley.ne02ptzero.me/~louis/shayla" +license=("GPL3") +makedepends=("cmake" "git" "gcc") +provides=("shayla") +conflicts=("shayla") +source=("${_pkgname}::git+${url}") +md5sums=("SKIP") + +pkgver() { + git -C "${_pkgname}" describe --long --tags | sed "s/-/.r/;s/-/./g" +} + +prepare() { + git -C "${_pkgname}" submodule update --init --recursive + mkdir -p "${_pkgname}/build" +} + +build() { + cd "${_pkgname}/build" || exit 1 + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + cmake --build . +} + +package() { + cmake --build "${_pkgname}/build" --target install -- DESTDIR="${pkgdir}" + install -Dm644 "${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" +} |