summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7df809595acdd1474cfa9025f74ed25320b7eff1 (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
# Maintainer: Sam Day <me@samcday.com>

pkgname="rmtfs"
pkgdesc="Qualcomm Remote Filesystem Service Implementation"
pkgver=1.0
pkgrel=1
arch=(aarch64 x86_64)
url="https://github.com/andersson/rmtfs"
license=("BSD-3-Clause")
depends=(qrtr libudev.so)
makedepends=()
_srcname="${pkgname}-${pkgver}"
source=(
	"${_srcname}.tar.gz::https://github.com/linux-msm/rmtfs/archive/refs/tags/v${pkgver}.tar.gz"
	"udev.rules"
	)
sha256sums=('45e53d4e3d92717bed3b896c871429abe6cfb55230b39b4228323537167834e7'
            '0c2f26d40d9d18e3089c6d836b64231c4f7e0c1ca41686fe7c9d1eb495dc6bbe')

build() {
	cd "$_srcname"

	make prefix=/usr
}

package() {
	cd "$_srcname"

	make prefix=/usr DESTDIR="$pkgdir/" install
	install -Dm644 "$srcdir"/udev.rules "$pkgdir/usr/lib/udev/rules.d/65-$pkgname.rules"
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}