diff options
author | Quentin Bazin | 2019-11-18 04:02:17 +0900 |
---|---|---|
committer | Quentin Bazin | 2019-11-18 04:02:17 +0900 |
commit | f03c395171b9b84eb175689743b79775a06d14c6 (patch) | |
tree | 90d2bf589d416b90bcda01530cdf1577806e6678 /PKGBUILD | |
download | aur-aniproject-git.tar.gz |
First commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8a91f7df5588 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Quentin Bazin <quent42340 at gmail dot com> + +_pkgname=aniproject +pkgname="${_pkgname}-git" +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Unarelith's aniproject" +arch=("i686" "x86_64") +url="https://git.unarelith.net/Unarelith/aniproject" +depends=("apache" "mod_wsgi" "python" "python-pip" "python-virtualenv") +provides=("aniproject") +source=("${_pkgname}::git+${url}.git") +md5sums=("SKIP") +install=aniproject-git.install + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + # Copy files to package + mkdir -p "${pkgdir}/usr/share/webapps/aniproject/" + cp -r "${_pkgname}"/* "${pkgdir}/usr/share/webapps/aniproject/" +} + |