diff options
author | Pierre Chapuis | 2016-06-10 10:13:15 +0200 |
---|---|---|
committer | Pierre Chapuis | 2016-06-10 10:13:15 +0200 |
commit | fc2cbaa381d7ee74312258bea97a37130b07aa28 (patch) | |
tree | 76b011421d85bcfb7fa1234a86f40b16e96cb229 /PKGBUILD | |
download | aur-fc2cbaa381d7ee74312258bea97a37130b07aa28.tar.gz |
initial commit (1.1.0beta-1)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3530d9c9b27a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Pierre Chapuis <catwell at archlinux dot us> + +pkgname=lima +pkgver=1.1.0beta +pkgrel=1 +pkgdesc="Personal Cloud software" +depends=(python2 fuse) +makedepends=(prelink) +arch=("x86_64") +url="https://meetlima.com" +license=(custom) +install="lima.install" +source=( + "https://static.meetlima.com/linux-client/$pkgname-$pkgver-amd64.tgz" + "lima.service" +) +sha256sums=( + "1b845f976c127c9abe0f46c51347e9c74afd69a1cda35289f470c861ca92f8db" + "68662c1437f88403f38b0e80da3b2b546512fe524b791cba27791cd2d5033e7c" +) + +package() { + cd "$pkgname-$pkgver" + + # Copy lib directory. + mkdir -p "$pkgdir/usr" + cp -r lib "$pkgdir/usr" + + # Use python2 instead of python to make Namcap happy. + sed -i -e "s|#!/usr/bin/env python$|#!/usr/bin/env python2|g" \ + $(find "$pkgdir" -name "*.py") + + # All .pyc files are OK. + find "$pkgdir" -name "*.pyc" -exec touch {} \; + + # Mark stack of library as non-executable. + execstack -c "$pkgdir/usr/lib/lima/pylima.so" + + # Systemd unit file + install -Dm0644 "$srcdir/lima.service" \ + "$pkgdir/usr/lib/systemd/user/lima.service" + + # Executable and license file + install -Dm755 lima "$pkgdir/usr/bin/lima" + install -Dm0644 "lib/lima/TAC.txt" \ + "$pkgdir/usr/lib/licenses/$pkgname/TAC.txt" +} |