summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8252c69096c503dd40b74c9a1440a41690dc09d8 (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
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Taylor Allen
pkgname=shortsync-git
pkgver=0.1.1
pkgrel=1
epoch=
pkgdesc="This application makes it easy to keep track of alias, file, and folder shortcuts across multiple applications and shells."
arch=(x86_64 i686)
url="https://github.com/taylo2allen/shortsync.git"
license=('MIT')
groups=()
depends=()
makedepends=('git' 'glibc' 'gcc-libs')
checkdepends=()
optdepends=('entr')
provides=('shortsync')
conflicts=()
replaces=('shortsync')
backup=()
options=()
install=
changelog=
source=(git+$url)
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
	cd shortsync
	printf "%s" "$pkgver"
}

build() {
	cd shortsync
	make
}

package() {
	cd shortsync
	mkdir -p /home/$USER/.config/shortsync/shortcut-files/
	cp -nru config/* -t /home/$USER/.config/shortsync
	install -Dm755 "bin/shortsync" "$pkgdir/usr/local/bin/shortsync"
	install -Dm644 "shortsync.1" "$pkgdir/usr/share/man/man1/shortsync.1"
	install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/shortsync/LICENSE"
	install -Dm644 "README.md" "$pkgdir/usr/share/doc/shortsync/README.md"
}