diff options
author | Matthew Gamble | 2021-03-26 00:13:00 +1100 |
---|---|---|
committer | Matthew Gamble | 2021-03-26 00:13:00 +1100 |
commit | 46ce0cec730099f9df08fbcb91da6b4041eff239 (patch) | |
tree | c82206042fec37179834cc5b1202b36e3e5c2760 /PKGBUILD | |
download | aur-46ce0cec730099f9df08fbcb91da6b4041eff239.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..58a3f2cadb3a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Matthew Gamble <git@matthewgamble.net> + +pkgname="snapdrop" +pkgver=2021.03.10 +pkgrel=1 +_githash="fad4632eb903ea6de9ecbec90df0ac6bd7410e68" +pkgdesc="A Progressive Web App for local file sharing" +url="https://github.com/RobinLinus/snapdrop" +license=("GPL3" "MIT") +arch=("any") +depends=("nodejs") +makedepends=("npm") +source=( + "https://github.com/RobinLinus/snapdrop/archive/${_githash}.tar.gz" + "example-nginx.conf" +) +sha256sums=( + "8886ae45aa5910606c8125e27cc589ae26fe162eedc11a396ca864f4788f2c2a" + "a20b5daf7e2b49d0dc54e93911e22b2fea244ecf2ef3ee58960e3c2aacde586a" +) + +prepare() { + cd "snapdrop-${_githash}/server" + npm ci +} + +package() { + cd "snapdrop-${_githash}" + + install -dm755 "${pkgdir}/usr/share/snapdrop" + cp -r client server "${pkgdir}/usr/share/snapdrop/" + + install -dm755 "${pkgdir}/usr/share/doc" + cp -r docs "${pkgdir}/usr/share/doc/snapdrop" + install -Dm644 "README.md" "${pkgdir}/usr/share/doc/snapdrop/README.md" + install -Dm644 "${srcdir}/example-nginx.conf" "${pkgdir}/usr/share/doc/snapdrop/example-nginx.conf" + + chmod -R 0000 "${pkgdir}/usr/share" + chmod -R u+rwX,g+rX,o+rX "${pkgdir}/usr/share" +} |