-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
41 lines (33 loc) · 1.27 KB
/
PKGBUILD
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
34
35
36
37
38
39
40
41
# Maintainer: Cristian Novoa <[email protected]>
pkgname=melodymover
pkgver=1.0.0
pkgrel=1
pkgdesc="A powerful and user-friendly desktop application for organizing and managing music collections"
arch=('any')
url="https://github.com/Cristian158/melodymover"
license=('MIT')
depends=('python' 'python-gobject' 'gtk3' 'ffmpeg' 'python-mutagen')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Cristian158/melodymover/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')
prepare() {
cd "$srcdir"
mv "MelodyMover-$pkgver" "$pkgname"
}
build() {
cd "$srcdir/$pkgname"
python setup.py build
}
package() {
cd "$srcdir/$pkgname"
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Ensure the melodymover directory exists
mkdir -p "$pkgdir/usr/lib/python3.12/site-packages/melodymover"
# Copy all Python files from the source directory
cp -r $pkgname/*.py "$pkgdir/usr/lib/python3.12/site-packages/melodymover/"
# Copy .glade files if they exist
cp -r $pkgname/*.glade "$pkgdir/usr/lib/python3.12/site-packages/melodymover/" || true
# Ensure the main script is executable
chmod +x "$pkgdir/usr/bin/melodymover"
}