Oliver Smith 9d9f981a2c aports: add support for armv7 [skip ci]
This makes it possible to provide armv7 as additional architecture in
Alpine, next to armhf. See the discussion in this ML thread:
<https://lists.alpinelinux.org/alpine-devel/6271.html>

It's done by adding armv7 next to armhf in the arch line and also
!armv7 where the arch line said !armhf. The following script was used:
2018-09-24 10:19:24 +03:00

43 lines
1.3 KiB
Plaintext

# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=syncthing-inotify
pkgver=0.8.7
pkgrel=1
pkgdesc="File watcher intended for use with Syncthing"
url="https://github.com/syncthing/syncthing-inotify"
arch="all !armhf !armv7"
license="MPL-2.0"
depends="syncthing"
makedepends="go"
install=""
subpackages=""
source="syncthing-inotify-$pkgver.tar.gz::https://github.com/syncthing/syncthing-inotify/archive/v$pkgver.tar.gz
$pkgname.initd
"
builddir="$srcdir/src/github.com/$pkgname"
prepare() {
mkdir -p ${builddir%/*}
mv "$srcdir"/$pkgname-$pkgver "$builddir"/
cd "$builddir"
default_prepare
}
build() {
cd "$builddir"
export GOPATH="$srcdir"
go build -v -ldflags "-w -X main.Version=$pkgver"
}
check() {
"$builddir"/$pkgname -version > /dev/null
}
package() {
install -Dm755 "$builddir"/$pkgname "$pkgdir"/usr/bin/$pkgname
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
sha512sums="170efa92e3d4f479148f26966326c47950e3c2be81a241a090e5a6174a873130718f2d6c8b9310f6c566b08fcbdf6ad6d83378cb91568064b5a9de788072d9d2 syncthing-inotify-0.8.7.tar.gz
686852c7ce89e9a066d5d7b9433471a66184ab59ecba2a6946e605b638d309715188488a1ec29b22f6d8292da9c05fc8726fa93ccd5565de48be236741316604 syncthing-inotify.initd"