gps-nokia-n900: improve APKBUILD formatting (MR 4230)

Also resolve apkbuild-lint errors.
This commit is contained in:
Luca Weiss 2023-07-05 18:24:03 +02:00 committed by Oliver Smith
parent dd5f448bee
commit 7dbb476f4d
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -4,23 +4,18 @@ pkgrel=0
pkgdesc="GPS support for Nokia N900" pkgdesc="GPS support for Nokia N900"
url="https://gitlab.com/postmarketOS/gps-nokia-n900" url="https://gitlab.com/postmarketOS/gps-nokia-n900"
arch="armhf" arch="armhf"
license="GPL3" license="GPL-3.0-only"
depends=""
makedepends="linux-headers" makedepends="linux-headers"
subpackages="" source="$pkgname-$pkgver.tar.gz::https://gitlab.com/postmarketOS/gps-nokia-n900/-/archive/v$pkgver/gps-nokia-n900-v$pkgver.tar.gz"
source="${pkgname}-${pkgver}.tar.gz::https://gitlab.com/postmarketOS/gps-nokia-n900/-/archive/v${pkgver}/gps-nokia-n900-v${pkgver}.tar.gz"
options="!check" options="!check"
builddir="$srcdir/$pkgname-v$pkgver"
builddir="$srcdir"/"$pkgname"-"v$pkgver"
build() { build() {
cd "$builddir"
make make
} }
package() { package() {
cd "$builddir" install -D -m755 "$builddir"/gps-nokia-n900 -t "$pkgdir"/usr/bin/
install -d -m755 "$pkgdir"/usr/bin
install -D -m755 "$builddir"/gps-nokia-n900 "$pkgdir"/usr/bin
} }
sha512sums="6699a19c4c0bc942d404ce4c4689932872400d7f41ac80c02df9d71f56a3e657e17e674aa0d4faf3eb33a87cb0e8b420d8aa86b27896b39c021900229511ea3a gps-nokia-n900-0.0.tar.gz" sha512sums="6699a19c4c0bc942d404ce4c4689932872400d7f41ac80c02df9d71f56a3e657e17e674aa0d4faf3eb33a87cb0e8b420d8aa86b27896b39c021900229511ea3a gps-nokia-n900-0.0.tar.gz"