blob: f6caf7bf6846377e49281e277e4c07f191e39774 (
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
|
pkgname="yaaw-git"
pkgver=r124.a5d2d30
pkgrel=1
pkgdesc="Yet Another Aria2 Web Frontend in pure HTML/CSS/Javascirpt. PKGBUILD source code at https://github.com/gutenye/aurs/tree/master/$pkgname"
arch=("i686" "x86_64")
url="https://github.com/binux/yaaw"
license=("GPL")
makedepends=("git")
provides=("yaaw")
conflicts=("yaaw")
source=(
"$pkgname::git://github.com/binux/yaaw.git"
"apache.example.conf"
"nginx.example.conf")
md5sums=('SKIP'
'6bcbdb5390332f13e3bc5c6cbf5524c7'
'a04cf9b8610507f54505487a15b411cc')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/$pkgname"
mkdir -p "$pkgdir/usr/share/webapps/yaaw"
mkdir -p "$pkgdir/etc/webapps/yaaw"
cp -r * "$pkgdir/usr/share/webapps/yaaw"
cp ../*.example.conf "$pkgdir/etc/webapps/yaaw"
chown http:http -R "$pkgdir/usr/share/webapps/yaaw"
}
# vim:set ts=2 sw=2 et:
|