blob: c24a03a89e0ed02fc258f062a69fe727f66d83f8 (
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
|
# Maintainer: Niklas <dev@n1klas.net>
pkgname='libhomegear-node'
pkgdesc='Base library for Homegear nodes'
pkgver=0.7.30
pkgrel=1
arch=('x86_64' 'i686' 'armv6h' 'armv7h' 'aarch64')
license=('LGPL3')
url="https://homegear.eu"
depends=('gcc-libs')
source=("https://github.com/Homegear/libhomegear-node/archive/${pkgver}.tar.gz")
sha512sums=('c3853c93c9a638aa3530f7e10fbac6831604018ee5c9095ce53cf057aa1fa981bb09cf8ba59e9c54e47165efd8ea2a31c4f8f890eec635560ee9c0fefac4fdad')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Use the our version number instead of the script which would have fetched it from Github
sed -i -e "s#m4_esyscmd_s(\[./getVersion.sh\])#${pkgver}#" configure.ac
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./bootstrap
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|