summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d86e275a792a050de326795fb6f068abc836883 (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
# Maintainer: PCITechie <pcitechie@member.fsf.org>
pkgname=packageprovides
pkgver=0.1.1
pkgrel=1
pkgdesc="Metapackage creator for Arch and Arch-based GNU/Linux distributions. Used to specify that a package provides anothers functionality, in case that is not specified in the repos or AUR."
arch=('any')
url="https://git.sr.ht/~pcitechie/PackageProvides"
license=('GPL')
makedepends=('gcc' 'git')
optdepends=('paru: AUR dependency resolving')
source=(https://git.sr.ht/~pcitechie/PackageProvides/archive/$pkgver.tar.gz)
md5sums=('40833eb4986e0d049a7726c5f8525d68')

build() {
	cd "$srcdir/PackageProvides-$pkgver"
	gcc PackageProvides.c -o packageprovides
}

package() {
	cd "$srcdir/PackageProvides-$pkgver"
	mkdir -p "$pkgdir/etc/PackageProvides"
	mkdir -p "$pkgdir/usr/bin"
	cp -r README.md "$pkgdir/etc/PackageProvides/README.md"
	cp -r COPYING "$pkgdir/etc/PackageProvides/COPYING"
	cp -r PKGBUILDTEMPLATE "$pkgdir/etc/PackageProvides/PKGBUILDTEMPLATE"
	cp -r packageprovides "$pkgdir/usr/bin/packageprovides"
}