blob: af5d23fb3d172eb486e28e6d77a10f1465544619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=wordpress-git
pkgver=6.2.0.r97.gce28deee43
pkgrel=1
pkgdesc="Blog tool, publishing platform and CMS"
arch=('any')
url="https://wordpress.org/"
license=('GPL')
depends=('php')
makedepends=('git')
optdepends=('apache: Web server for serving WordPress'
'mariadb: Database server'
'nginx: Web server for serving WordPress')
provides=("wordpress=$pkgver")
conflicts=('wordpress')
install=wordpress.install
source=("git://develop.git.wordpress.org/")
sha256sums=('SKIP')
pkgver() {
cd "develop"
_tag=$(git tag -l --sort -v:refname | head -n1)
_rev=$(git rev-list --count $_tag..HEAD)
_hash=$(git rev-parse --short HEAD)
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash"
}
package() {
cd "develop"
install -d "$pkgdir/usr/share/webapps/wordpress"
cp -r "src"/* "$pkgdir/usr/share/webapps/wordpress"
}
|