summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 72c3014b3af23e7234bfa47feb63c0faa2d2daf8 (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
# Maintainer: Carson Black <uhhadd AT gmail DOT com>
pkgname=alpmbuild
pkgver=0.1
pkgrel=1
pkgdesc="Build Arch packages using the specfile format used by rpmbuild and debbuild"
arch=(any)

url="https://github.com/Appadeia/alpmbuild"
license=("GPL")

depends=(
    "rpm"
)
makedepends=(
    "go"
)

source=("alpmbuild-0.1.tar.gz::https://github.com/Appadeia/alpmbuild/archive/0.1.tar.gz")
md5sums=("50e0cf5d20af51e7d1ef79f32c42bfb9")

build() {
    cd "$pkgname-$pkgver"
    go build
}

package() {
    cd "$pkgname-$pkgver"
    install -Dm 755 alpmbuild "$pkgdir/usr/bin/alpmbuild"
    install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}