summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadoslaw Mejer2019-08-06 10:21:07 +0200
committerRadoslaw Mejer2019-08-06 10:21:07 +0200
commitc82bf7483219edab9059120f2d8f924f75d4e95e (patch)
tree623921a6072682b1a71412177e7a098c7b500156
parentf81c5d05493975084943d71f2f8727cccb2f4689 (diff)
downloadaur-c82bf7483219edab9059120f2d8f924f75d4e95e.tar.gz
Add LICENSE
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD5
2 files changed, 7 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 55cdc936110f..dbfbba8d9230 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = silicon
pkgdesc = Create beautiful image of your code
pkgver = 0.2.5
- pkgrel = 3
+ pkgrel = 4
arch = i686
arch = x86_64
arch = armv6h
@@ -16,8 +16,10 @@ pkgbase = silicon
depends = freetype2
depends = xclip
source = silicon-0.2.5.zip::https://github.com/Aloxaf/silicon/archive/13209ffd5fdb7fe6c150060ba0a6e7c3d9faa5c8.zip
+ source = https://raw.githubusercontent.com/Aloxaf/silicon/master/LICENSE
source = 0001-font-kit.patch
sha256sums = c1cb9d6e7e3bd354f1e02915ffb012beffa1637b395387b139eaaf7dbb83d1bc
+ sha256sums = 87d7aaf6d61cd4bea70acd5bf7015cd115e821b68f9918d10a59a6d0cd4066b2
sha256sums = ef8225eb6c7d14648ed1a769f5b7177593bde16f5ab9ce75cbcc92df79b6639a
pkgname = silicon
diff --git a/PKGBUILD b/PKGBUILD
index 7f0edc6d07db..a05d05364ef3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=silicon
pkgver=0.2.5
_relcommit='13209ffd5fdb7fe6c150060ba0a6e7c3d9faa5c8'
-pkgrel=3
+pkgrel=4
depends=('fontconfig' 'freetype2' 'xclip')
makedepends=('rust' 'cargo' 'glibc' 'llvm-libs' 'gcc-libs')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
@@ -10,10 +10,12 @@ pkgdesc="Create beautiful image of your code"
license=('MIT')
source=(
"silicon-$pkgver.zip::https://github.com/Aloxaf/silicon/archive/$_relcommit.zip"
+ "https://raw.githubusercontent.com/Aloxaf/silicon/master/LICENSE"
"0001-font-kit.patch"
)
sha256sums=(
'c1cb9d6e7e3bd354f1e02915ffb012beffa1637b395387b139eaaf7dbb83d1bc'
+ '87d7aaf6d61cd4bea70acd5bf7015cd115e821b68f9918d10a59a6d0cd4066b2'
'ef8225eb6c7d14648ed1a769f5b7177593bde16f5ab9ce75cbcc92df79b6639a'
)
@@ -24,5 +26,6 @@ build() {
package() {
patch -d "$srcdir/silicon-$_relcommit" -p1 < "0001-font-kit.patch"
cargo install --root="$pkgdir/usr" --path "$srcdir/silicon-$_relcommit"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
rm -f "$pkgdir/usr/.crates.toml"
}