summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d0000d133ecf173669606c74ee4131cba4f6280 (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
pkgname="log-console"
pkgver=1.18
pkgrel=1
pkgdesc="console logger static library"
arch=("x86_64")
author="imperzer0"
branch="master"
url="https://github.com/$author/$pkgname"
license=('GPL')

_srcprefix="https://raw.githubusercontent.com/$author/$pkgname/$branch"
_libfiles=("$pkgname" "$pkgname""-defs")
md5sums=("a727176f5d208daceb4a9aab4b15cfad" "2fd9a98d504fba82afbc322976c6e4b6")

# add all library files to sources
for _libfile in ${_libfiles[@]}
{
    source=(${source[@]} "$_srcprefix/$_libfile")
}

prepare()
{
    curl -L "$_srcprefix/PKGBUILD" > PKGBUILD-git
}

package()
{
    . PKGBUILD-git && package
}