summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be684c7f47f9224e4fa9153000e56aae858fb923 (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
# Maintainer: Nissar Chababy <funilrys at outlook dot com>

pkgname=encryptic
upstreamName=Encryptic
pkgver=0.1.0
pkgrel=1
pkgdesc="An encryption-focused open source note taking application."
arch=("x86_64" "i686")

url="https://github.com/encryptic-team/encryptic"
license=('MPL2')
source=("${pkgname}.desktop" "https://raw.githubusercontent.com/encryptic-team/encryptic/master/LICENSE")
source_x86_64=("https://github.com/encryptic-team/encryptic/releases/download/${pkgver}/${upstreamName}-${pkgver}-linux-x64.zip")
source_i686=("https://github.com/encryptic-team/encryptic/releases/download/${pkgver}/${upstreamName}-${pkgver}-linux-ia32.zip")
sha512sums=('d0133fd663f00d57342fdc7568d1d034433f2d5ab21d26ec3ecc35fff9566a86ac051141b2750e3b88cb1a65aeb5fc2cbe3b55416270982b6dcfb9c05f3a0759' 'c1e3a0c8f5267fb5c0b65733bda037c62d914ed989bee0f510d8196b1029eec00d40f415ce1514a4996d420ba02d856d04db0915b64573ef4a36033cc5efb94e')
sha512sums_x86_64=('5b48e8947819c4028af4f6beefacacf9fcba5de959dcf3b7df0aa040977c369025198c41371e4e3707f937a34412615d0c0b43108891a14cc3d4e2c41aa1fe44')
sha512sums_i686=('8d40a8e36998727cc83c4eaba5d6a4b21a5fbdd4b7ca3b77107cd25cc88cb2ad237a504d78c75647c8e4d5890490e44c2a450c1ad3e8faf14c14735c24d88a0f')


package() {
    mkdir -p ${pkgdir}/usr/bin
    mkdir -p ${pkgdir}/usr/share/{${pkgname},applications,licenses/${pkgname}}

    rm ${srcdir}/*.zip  # Deletes what we downloaded.
    cp -R ${srcdir}/* ${pkgdir}/usr/share/${pkgname}

    install -Dm644 ../${pkgname}.desktop ${pkgdir}/usr/share/${pkgname}
    install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

    ln -s /usr/share/${pkgname}/${upstreamName} ${pkgdir}/usr/bin/${pkgname}
}