blob: 22f87e08f562d8f32043f6944ab23b4133a00f56 (
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
32
33
|
pkgname=decpkg
pkgver=0.1.1
pkgrel=1
pkgdesc="Declarative package installer for Arch Linux"
arch=('any')
url="https://github.com/maarutan/decpkg"
license=('MIT')
depends=()
makedepends=('python' 'pyinstaller')
options=('!strip')
source=("decpkg.py")
sha256sums=('SKIP')
build() {
if command -v pyinstaller >/dev/null 2>&1; then
pyinstaller --onefile decpkg.py
else
echo "PyInstaller not found — using decpkg.py as a fallback."
if ! command -v python >/dev/null 2>&1; then
echo "Python is not installed, cannot build fallback."
exit 1
fi
cp decpkg.py decpkg
chmod +x decpkg
mkdir -p dist
mv decpkg dist/
fi
}
package() {
install -Dm755 "dist/decpkg" "$pkgdir/usr/bin/decpkg"
}
|