blob: 442d3eb92f58a5c5e126e42b894c10f30216fde1 (
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
|
pkgname=redis-dns-git
_pkgname=redis-dns
pkgver=0.1.2
pkgrel=1
pkgdesc="A gevent redis based DNS server with dyndns like API (forked from https://github.com/coagentpai/redis-dns)"
url="https://github.com/rains31/redis-dns"
license=('GPL2')
depends=('redis' 'python2-daemon' 'python2-dnspython' 'python2-gevent' 'python2-redis')
makedepends=('git')
provides=(${_pkgname})
conflicts=(${_pkgname})
options=()
arch=('i686' 'x86_64')
source=("git+https://github.com/rains31/${_pkgname}.git")
sha1sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --tags | sed 's/^v//;s/-/./g'
}
package() {
cd "${_pkgname}"
#make DESTDIR="$pkgdir" install
install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/lib/${_pkgname}"
ln -s ../lib/${_pkgname}/${_pkgname} "${pkgdir}/usr/bin/"
install -D -m755 "${srcdir}/${_pkgname}/${_pkgname}" "${pkgdir}/usr/lib/${_pkgname}"
install -D -m644 ${srcdir}/${_pkgname}/*.py "${pkgdir}/usr/lib/${_pkgname}"
install -D -m644 "${srcdir}/${_pkgname}/${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
}
|