diff options
author | Arsen Musayelyan | 2023-04-26 22:33:48 -0700 |
---|---|---|
committer | Arsen Musayelyan | 2023-04-26 22:33:48 -0700 |
commit | c294cfe6af31176b9547898d733f732aac44c045 (patch) | |
tree | dca321c3818c840b533cb35a519ae94dc40b462a | |
parent | 5a81292941a445eb779ca2e3df2d0250b34467f4 (diff) | |
download | aur-c294cfe6af31176b9547898d733f732aac44c045.tar.gz |
Remove use of makefile
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1,6 +1,6 @@ -# Maintainer: Elara Musayelyan <moussaelianarsen@gmail.com> +# Maintainer: Elara Musayelyan <elara@elara.ws> pkgname=itd-git -pkgver=r14.81fe634 +pkgver=r259.25220cf pkgrel=2 pkgdesc="Daemon that interfaces with InfiniTime firmware on the PineTime smartwatch" arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') @@ -18,12 +18,21 @@ pkgver() { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" > version.txt +} + build() { cd "$srcdir/itd" - make + go build + go build ./cmd/itctl } package() { cd "$srcdir/itd" - make DESTDIR="$pkgdir" PREFIX="/usr" install + + install -Dm755 ./itd "$pkgdir/usr/bin/itd" + install -Dm755 ./itctl "$pkgdir/usr/bin/itctl" + install -Dm644 ./itd.service "$pkgdir/usr/lib/systemd/user/itd.service" + install -Dm644 ./itd.toml "$pkgdir/etc/itd.toml" } |